CaryCoders
/
demo_SX1276_standalone
standalone sx1276 demo program
Fork of SX1276_GPS by
main.cpp
- Committer:
- vtraveller
- Date:
- 2014-08-30
- Revision:
- 20:93c70a1869ee
- Parent:
- 19:72c02acb601d
- Child:
- 21:c44cfd3259c0
File content as of revision 20:93c70a1869ee:
#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); //MCP23017 cMCP23017 = MCP23017(I2C_SDA, I2C_SCL, 0x4E, true); Adafruit_RGBLCDShield cLCD(cMCP23017); //Adafruit_RGBLCDShield cLCD(cMCP23017,1<<0,1<<1, 1<< 2, 1<<4, 1<<5, 1<<6, 1<<7); RTclock cClock(I2C_SDA, I2C_SCL, RTclock::eDS3231); //RTclock cClock(D3, D6); // Spin up RTC cClock.mapTime(); // Set up display modules Module * aModules[] = { new TempModule(cLCD), new TimeModule(cLCD,cClock), new DateModule(cLCD,cClock), new SyncModule(cLCD,cClock), new TitleModule(cLCD), }; // Set up the menu manager MenuManager cMenuManager(aModules,_countof(aModules),cLCD,16,2); //MenuManager cMenuManager(aModules,_countof(aModules),cLCD,20,4); // Start menu manager loop cMenuManager.loop(); }