CaryCoders
/
demo_SX1276_standalone
standalone sx1276 demo program
Fork of SX1276_GPS by
main.cpp
- Committer:
- vtraveller
- Date:
- 2014-08-14
- Revision:
- 19:72c02acb601d
- Parent:
- 17:731a47339cb8
- Child:
- 20:93c70a1869ee
File content as of revision 19:72c02acb601d:
#include "mbed.h" #include "Adafruit_RGBLCDShield.h" #include "RTclock.h" #include "DateModule.h" #include "TempModule.h" #include "TimeModule.h" #include "TitleModule.h" #include "SyncModule.h" #include "MenuManager.h" //Serial cPC(SERIAL_TX, SERIAL_RX); int main() { MCP23017 cMCP23017 = MCP23017(I2C_SDA, I2C_SCL, 0x40, true); Adafruit_RGBLCDShield cLCD(cMCP23017); RTclock cClock(I2C_SDA, I2C_SCL); //RTclock cClock(D3, D6); // Spin up RTC cClock.mapTime(); // Set up display modules Module * aModules[] = { new TitleModule(cLCD), new TimeModule(cLCD,cClock), new DateModule(cLCD,cClock), new TempModule(cLCD), new SyncModule(cLCD,cClock), }; // Set up the menu manager MenuManager cMenuManager(aModules,_countof(aModules),cLCD); // Start menu manager loop cMenuManager.loop(); }