Because I initially wasn't sure if the problem was the GPS or the display, I went back to the TinyGPS "test_with_GPS_device" example sketch. Running the sketch with the Adafruit GPS gave the expected results, when I opened the serial monitor it immediately displayed the header info and then position updates every second.
Then, I added the following two lines to the "test_with_GPS_device" sketch:
Code: Select all
#include <Adafruit_CharacterOLED.h>
Adafruit_CharacterOLED lcd(12, 8, 11, 4, 5, 6, 7);
Finally, I added the following lines in the setup block of the sketch:
Code: Select all
lcd.begin(16, 2);
lcd.print("Acquiring...");
I do get a "Large amount of SRAM used" warning with the original and modified sketches.
When I use the LiquidCrystal library and initialization in the example sketch:
Code: Select all
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 4, 5, 6, 7);
So, it seems the GPS will work fine with TinyGPS, but for whatever reason, the OLED library isn't fully compatible. Any suggestions on this one? Thanks for your help.
Ted