Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SX1276Lib AdaFruit_RGBLCD MCP23017 mbed
Fork of AdaFruit_RGBLCD by
Diff: Modules/TempModule.h
- Revision:
- 31:2c813f321db7
- Parent:
- 30:6b0785d23528
- Child:
- 32:a2472bbe7c92
--- a/Modules/TempModule.h Tue Jun 16 11:56:16 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-#ifndef __TEMPMODULE_H__
-#define __TEMPMODULE_H__
-
-#include "mbed.h"
-#include "module.h"
-
-class TempModule
- : public Module
-{
-public:
- TempModule
- (
- Serial & in_cDisplay,
- I2C & in_cI2C,
- uint8_t in_nAddress
- );
- virtual ~TempModule();
-
- virtual bool canRefresh() { return true; }
- virtual bool isValid() { return m_bValid; }
- virtual void show(bool in_bRefresh);
-
-protected:
- float readTempC();
- uint16_t read16(uint8_t in_nRegister);
- void write16(uint8_t in_nRegister, uint16_t in_nValue);
-
- I2C & m_cI2C;
- uint8_t m_nAddress;
- bool m_bValid;
-};
-
-#endif /* __TEMPMODULE_H__ */
