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: MyTimeout.hpp
- Revision:
- 8:6f30f477fa23
- Parent:
- 6:6c61186c8739
--- a/MyTimeout.hpp Tue Feb 23 16:57:15 2016 +0000 +++ b/MyTimeout.hpp Tue Feb 23 18:13:35 2016 +0000 @@ -8,7 +8,7 @@ * It allows me to check if there is a function attached to a timeout. * Thanks to this, it can prevent a timeout to be attached if there is already one running. * It is useful in my case for the sleep() + interrupts so I don't lose process cylces. - * The function MUST be detached from the timeout using detach() method. + * The function *MUST* be detached from the timeout using detach() method. * * You can check the usage in the main.cpp file at the end of the main() function. */ @@ -17,9 +17,6 @@ public: bool hasAttachment() { -#if defined _DEBUG - pc.printf("Has function ? %c\r\n", (this->_function != NULL ? 'Y' : 'N')); -#endif return (this->_function != NULL); } };