Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SX1276Lib AdaFruit_RGBLCD MCP23017 mbed
Fork of AdaFruit_RGBLCD by
main.cpp
- Committer:
- vtraveller
- Date:
- 2014-08-11
- Revision:
- 13:9641bc42db92
- Parent:
- 11:96146db429de
- Child:
- 17:731a47339cb8
File content as of revision 13:9641bc42db92:
#include "mbed.h" #include "Adafruit_RGBLCDShield.h" #include "RTclock.h" #include "DateModule.h" #include "TempModule.h" #include "TimeModule.h" #include "TitleModule.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 cRTclock(I2C_SDA, I2C_SCL); // Spin up RTC cRTclock.mapTime(); // Set up display modules Module * aModules[] = { new TitleModule(cLCD), new TimeModule(cLCD,cRTclock), new DateModule(cLCD,cRTclock), new TempModule(cLCD), }; // Set up the menu manager MenuManager cMenuManager(aModules,_countof(aModules),cLCD); // Start menu manager loop cMenuManager.loop(); }