CaryCoders
/
demo_SX1276_standalone
standalone sx1276 demo program
Fork of SX1276_GPS by
Diff: main.cpp
- Revision:
- 17:731a47339cb8
- Parent:
- 13:9641bc42db92
- Child:
- 19:72c02acb601d
diff -r 9e1edf28393f -r 731a47339cb8 main.cpp --- a/main.cpp Tue Aug 12 04:28:23 2014 +0000 +++ b/main.cpp Thu Aug 14 10:47:27 2014 +0000 @@ -7,6 +7,7 @@ #include "TempModule.h" #include "TimeModule.h" #include "TitleModule.h" +#include "SyncModule.h" #include "MenuManager.h" @@ -16,18 +17,22 @@ { MCP23017 cMCP23017 = MCP23017(I2C_SDA, I2C_SCL, 0x40, true); Adafruit_RGBLCDShield cLCD(cMCP23017); - RTclock cRTclock(I2C_SDA, I2C_SCL); + + RTclock cPrecisionClock(I2C_SDA, I2C_SCL); + RTclock cClock(D3, D6); // Spin up RTC - cRTclock.mapTime(); - + cPrecisionClock.mapTime(); + // Set up display modules Module * aModules[] = { new TitleModule(cLCD), - new TimeModule(cLCD,cRTclock), - new DateModule(cLCD,cRTclock), + new TimeModule(cLCD,cPrecisionClock), + new TimeModule(cLCD,cClock), + new DateModule(cLCD,cPrecisionClock), new TempModule(cLCD), + new SyncModule(cLCD,cPrecisionClock,cClock), }; // Set up the menu manager