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.
main.cpp@1:aefa1992ce0f, 2011-10-10 (annotated)
- Committer:
- uehara00
- Date:
- Mon Oct 10 11:45:51 2011 +0000
- Revision:
- 1:aefa1992ce0f
- Parent:
- 0:0be38b583cf7
- Child:
- 3:eec13a411e94
Date/time display to LCD, adjust by buttons, alarm, timer, clock-output control. Just an example of RTC funtions, not for a practical use.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| uehara00 | 1:aefa1992ce0f | 1 | //copyright 2011 Uehara Yoshiyuki |
| uehara00 | 1:aefa1992ce0f | 2 | //==================================================================== |
| uehara00 | 1:aefa1992ce0f | 3 | //The author provide the programs without any guarantees or warranty. |
| uehara00 | 1:aefa1992ce0f | 4 | //The author is not responsible for any damage or losses of any kind |
| uehara00 | 1:aefa1992ce0f | 5 | //caused by using or misusing of the programs. |
| uehara00 | 1:aefa1992ce0f | 6 | //The author is under no obligation to provide support, service, |
| uehara00 | 1:aefa1992ce0f | 7 | //corrections, or upgrades to the programs. |
| uehara00 | 1:aefa1992ce0f | 8 | //==================================================================== |
| uehara00 | 1:aefa1992ce0f | 9 | // MAPLE board[MARM01-BASE] |
| uehara00 | 1:aefa1992ce0f | 10 | // main |
| uehara00 | 0:0be38b583cf7 | 11 | #include "Maple_alarm_clock.h" |
| uehara00 | 0:0be38b583cf7 | 12 | #include "Maple_RTC.h" |
| uehara00 | 0:0be38b583cf7 | 13 | #include "Maple_I2C.h" |
| uehara00 | 0:0be38b583cf7 | 14 | #include "Maple_LCD.h" |
| uehara00 | 0:0be38b583cf7 | 15 | #include "Maple.h" |
| uehara00 | 0:0be38b583cf7 | 16 | #include "mbed.h" |
| uehara00 | 0:0be38b583cf7 | 17 | |
| uehara00 | 0:0be38b583cf7 | 18 | int main() { |
| uehara00 | 0:0be38b583cf7 | 19 | LCD_initialize(); |
| uehara00 | 0:0be38b583cf7 | 20 | RTC_initialize(); |
| uehara00 | 0:0be38b583cf7 | 21 | alarm_clock_initialize(); |
| uehara00 | 0:0be38b583cf7 | 22 | |
| uehara00 | 0:0be38b583cf7 | 23 | // wait interrupt |
| uehara00 | 0:0be38b583cf7 | 24 | while(1) { |
| uehara00 | 0:0be38b583cf7 | 25 | } |
| uehara00 | 0:0be38b583cf7 | 26 | } |