This program is an advanced "IoT" thermometer using LM75B component library. It displays the current value to the Serial host in Celcius or Fahrenheit (possible to change using a switch). It also stores an historic and displays it to the user using the LCD screen. Moreover, you can change the orientation of the screen by turning the device, just like a smartphone.
Dependencies: C12832 FXOS8700CQ LM75B mbed
main.h@7:e5732637dfd0, 2016-02-23 (annotated)
- Committer:
- co838_gtvl2
- Date:
- Tue Feb 23 16:57:15 2016 +0000
- Revision:
- 7:e5732637dfd0
- Parent:
- 6:6c61186c8739
FINAL VERSION.; Added Pause/Resume support using SW3 or 'p'
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
co838_gtvl2 | 1:06713d1b69cf | 1 | #ifndef _MAIN_H_ |
co838_gtvl2 | 1:06713d1b69cf | 2 | # define _MAIN_H_ |
co838_gtvl2 | 1:06713d1b69cf | 3 | |
co838_gtvl2 | 1:06713d1b69cf | 4 | # include "mbed.h" |
co838_gtvl2 | 1:06713d1b69cf | 5 | # include "LM75B.h" |
co838_gtvl2 | 1:06713d1b69cf | 6 | # include "C12832.h" |
co838_gtvl2 | 4:5bf99eb2d740 | 7 | # include "FXOS8700CQ.h" |
co838_gtvl2 | 1:06713d1b69cf | 8 | |
co838_gtvl2 | 4:5bf99eb2d740 | 9 | # define MIN_REFRESH_TIME 500 |
co838_gtvl2 | 1:06713d1b69cf | 10 | # define MAX_REFRESH_TIME 5000 |
co838_gtvl2 | 1:06713d1b69cf | 11 | |
co838_gtvl2 | 6:6c61186c8739 | 12 | # undef _DEBUG |
co838_gtvl2 | 2:5d0c209e5c61 | 13 | // # define _DEBUG |
co838_gtvl2 | 2:5d0c209e5c61 | 14 | |
co838_gtvl2 | 7:e5732637dfd0 | 15 | void sw2_interrupt(void); |
co838_gtvl2 | 7:e5732637dfd0 | 16 | void sw3_interrupt(void); |
co838_gtvl2 | 6:6c61186c8739 | 17 | void host_interrupt(void); |
co838_gtvl2 | 6:6c61186c8739 | 18 | void process_function(void); |
co838_gtvl2 | 6:6c61186c8739 | 19 | |
co838_gtvl2 | 6:6c61186c8739 | 20 | # if defined _DEBUG |
co838_gtvl2 | 6:6c61186c8739 | 21 | extern Serial pc; |
co838_gtvl2 | 6:6c61186c8739 | 22 | # endif |
co838_gtvl2 | 5:c5d7fca4d111 | 23 | |
co838_gtvl2 | 1:06713d1b69cf | 24 | #endif /* _MAIN_H_ */ |