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
- Committer:
- co838_gtvl2
- Date:
- 2016-02-12
- Revision:
- 5:c5d7fca4d111
- Parent:
- 4:5bf99eb2d740
- Child:
- 6:6c61186c8739
File content as of revision 5:c5d7fca4d111:
#ifndef _MAIN_H_ # define _MAIN_H_ # include "mbed.h" # include "rtos.h" # include "LM75B.h" # include "C12832.h" # include "FXOS8700CQ.h" # define MIN_REFRESH_TIME 500 # define MAX_REFRESH_TIME 5000 #undef _DEBUG // # define _DEBUG void rgb_handler(void); void sw_handler (void); void host_thread(void const*); #endif /* _MAIN_H_ */