Use the MAXREFDES99 to display the time from a DS3231 RTC. Requires the DS3231 RTC, or a MAXREFDES72 which has the rtc on it.
Dependencies: MAX7219 ds3231 mbed
Diff: main.cpp
- Revision:
- 1:ce6a3accca77
- Parent:
- 0:52f9ecc09233
--- a/main.cpp Fri Mar 25 22:50:52 2016 +0000 +++ b/main.cpp Tue May 31 22:32:53 2016 +0000 @@ -45,13 +45,7 @@ //rtc object Ds3231 rtc(D14, D15); - //switch for setting clock, requires tera term interface at 9600 8N1 - DigitalIn sw(SW3); - - if(sw.read() == 0) - { - set_rtc(rtc); - } + set_rtc(rtc); Max7219 display(D11, D12, D13, D10);