Open KnuckleUpFPV opened 4 years ago
The initialisation code has a bug, it resets the one of the GPS serial pins as an output.
Change this code from:
#define OLED_RESET 4 Adafruit_SSD1306 display(OLED_RESET); //Connection to I2C SCL and SDA!
To
#define OLED_RESET -1 Adafruit_SSD1306 display(OLED_RESET); //Connection to I2C SCL and SDA!
As you don't need a dedicated reset pin for a display with 4 pins.
As pin 4 has previously been mapped as a GPS serial pin.
I swapped it to use pin 4 as Rx and pin 3 as TX, thus allowing me to test with the example code in the library, hence I found the bug, after some head scratching.
No matter what I do the gps doesnt communicate with the arduino nano. I know the gps has a lock, because it has a red blinking light when it establishes a lock.