Giovani Cardona
/
4_1_DS3231demo
Ejemplo RTC DS3231
main.cpp@0:6be499dd402a, 2014-11-19 (annotated)
- Committer:
- j3
- Date:
- Wed Nov 19 04:16:48 2014 +0000
- Revision:
- 0:6be499dd402a
- Child:
- 1:7db4a1cc7abb
inherited I2C
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
j3 | 0:6be499dd402a | 1 | //Test Ds3231 class |
j3 | 0:6be499dd402a | 2 | |
j3 | 0:6be499dd402a | 3 | #include "ds3231.h" |
j3 | 0:6be499dd402a | 4 | |
j3 | 0:6be499dd402a | 5 | |
j3 | 0:6be499dd402a | 6 | int main(void) |
j3 | 0:6be499dd402a | 7 | { |
j3 | 0:6be499dd402a | 8 | //instantiate rtc object |
j3 | 0:6be499dd402a | 9 | Ds3231 rtc(D14, D15); |
j3 | 0:6be499dd402a | 10 | |
j3 | 0:6be499dd402a | 11 | for(;;) |
j3 | 0:6be499dd402a | 12 | { |
j3 | 0:6be499dd402a | 13 | |
j3 | 0:6be499dd402a | 14 | } |
j3 | 0:6be499dd402a | 15 | } |
j3 | 0:6be499dd402a | 16 |