generated from TDD-Templates/cmake_cpputest_template
moved the gps baud rate magic number into header as a define.
This commit is contained in:
parent
3f45a4f789
commit
88c22ee457
|
@ -24,6 +24,7 @@
|
||||||
// GPS CONFIGURATION (BN-220)
|
// GPS CONFIGURATION (BN-220)
|
||||||
#define GPS_TX_PIN 10 // GPS TX pin connected to Arduino RX
|
#define GPS_TX_PIN 10 // GPS TX pin connected to Arduino RX
|
||||||
#define GPS_RX_PIN 11 // GPS RX pin connected to Arduino TX
|
#define GPS_RX_PIN 11 // GPS RX pin connected to Arduino TX
|
||||||
|
#define GPS_BUADRATE 9600 // GPS serial baud rate.
|
||||||
|
|
||||||
// Radio defines
|
// Radio defines
|
||||||
#define RFM95_CS 8
|
#define RFM95_CS 8
|
||||||
|
|
|
@ -130,10 +130,10 @@ void setup(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// LED Ring Setup
|
// LED Ring Setup
|
||||||
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // Initialize the LED ring
|
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
|
||||||
|
|
||||||
// GPS Setup
|
// GPS Setup
|
||||||
gpsSerial.begin(9600); // Start GPS communication at 9600 baud rate
|
gpsSerial.begin(GPS_BUADRATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
Loading…
Reference in New Issue