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@5:c5d7fca4d111, 2016-02-12 (annotated)
- Committer:
- co838_gtvl2
- Date:
- Fri Feb 12 09:45:41 2016 +0000
- Revision:
- 5:c5d7fca4d111
- Parent:
- 4:5bf99eb2d740
- Child:
- 6:6c61186c8739
Added computer control through keyboard using RTOS Thread
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 | 5:c5d7fca4d111 | 5 | # include "rtos.h" |
co838_gtvl2 | 1:06713d1b69cf | 6 | # include "LM75B.h" |
co838_gtvl2 | 1:06713d1b69cf | 7 | # include "C12832.h" |
co838_gtvl2 | 4:5bf99eb2d740 | 8 | # include "FXOS8700CQ.h" |
co838_gtvl2 | 1:06713d1b69cf | 9 | |
co838_gtvl2 | 4:5bf99eb2d740 | 10 | # define MIN_REFRESH_TIME 500 |
co838_gtvl2 | 1:06713d1b69cf | 11 | # define MAX_REFRESH_TIME 5000 |
co838_gtvl2 | 1:06713d1b69cf | 12 | |
co838_gtvl2 | 2:5d0c209e5c61 | 13 | #undef _DEBUG |
co838_gtvl2 | 2:5d0c209e5c61 | 14 | // # define _DEBUG |
co838_gtvl2 | 2:5d0c209e5c61 | 15 | |
co838_gtvl2 | 5:c5d7fca4d111 | 16 | void rgb_handler(void); |
co838_gtvl2 | 5:c5d7fca4d111 | 17 | void sw_handler (void); |
co838_gtvl2 | 5:c5d7fca4d111 | 18 | void host_thread(void const*); |
co838_gtvl2 | 5:c5d7fca4d111 | 19 | |
co838_gtvl2 | 1:06713d1b69cf | 20 | #endif /* _MAIN_H_ */ |