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: DebouncedEdgeIn I2cLCD_cursor Rtc8564 mbed beep
Revision 6:e7073adacdc8, committed 2014-03-01
- Comitter:
- togayan
- Date:
- Sat Mar 01 00:18:23 2014 +0000
- Parent:
- 5:e374481e7554
- Commit message:
- Add indicator LED.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Feb 28 14:04:16 2014 +0000
+++ b/main.cpp Sat Mar 01 00:18:23 2014 +0000
@@ -21,6 +21,7 @@
{
set_new_handler(no_memory);
+ DigitalOut led(LED1);
I2C i2c(dp5, dp27); //sda scl
I2cLCD lcd(i2c, dp26); //i2c reset
Rtc8564 rtc(i2c, dp25, PullUp);
@@ -36,5 +37,10 @@
clockVm.initialize();
rtc.initialize();
- while(1);
+ while(1) {
+ led = 1;
+ wait(0.5);
+ led = 0;
+ wait(0.5);
+ }
}