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
Diff: ThermalDisplayer.h
- Revision:
- 1:06713d1b69cf
- Child:
- 2:5d0c209e5c61
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ThermalDisplayer.h Tue Feb 09 21:41:48 2016 +0000 @@ -0,0 +1,22 @@ +#ifndef _THERMALDISPLAYER_H_ +# define _THERMALDISPLAYER_H_ + +# include "main.h" +# include <list> +# include <iterator> + +class ThermalDisplayer { + +public: + ThermalDisplayer(); + void addTemp(const float&); + void display(); +private: + static const int MAX_SIZE = 64; + std::list<float> temperatures; + C12832 *lcd; // LCD screen + AnalogIn *pot; // Potentiometer POT2 to adjust the graphic's scale +}; + + +#endif /* _THERMALDISPLAYER_H_ */ \ No newline at end of file