moved the gps baud rate magic number into header as a define.

This commit is contained in:
jakeg00dwin 2024-09-26 16:51:51 -07:00
parent 3f45a4f789
commit 88c22ee457
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@
// GPS CONFIGURATION (BN-220)
#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_BUADRATE 9600 // GPS serial baud rate.
// Radio defines
#define RFM95_CS 8

View File

@ -130,10 +130,10 @@ void setup(void) {
}
// 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
gpsSerial.begin(9600); // Start GPS communication at 9600 baud rate
gpsSerial.begin(GPS_BUADRATE);
}
void loop() {