SHT V4 5V UART
Fork of SHT_v1 by
Diff: SHT.h
- Revision:
- 1:0dbbb4802508
- Parent:
- 0:df1c8f2961a1
--- a/SHT.h Sun Jan 24 22:00:35 2010 +0000
+++ b/SHT.h Tue Feb 23 08:10:54 2016 +0000
@@ -7,6 +7,7 @@
#include "mbed.h"
+
enum SHT_acc {
SHT_low=0,
SHT_high=1
@@ -14,7 +15,7 @@
typedef unsigned char byte;
-class SHT : public Base {
+class SHT {
public:
/* Constructor: SHT
* Creates an SHT interface connected to specific pins.
@@ -27,7 +28,7 @@
float get_temperature(); // get the most recent temp reading
float get_humidity(); // get the most recent humidity reading
float get_dewpoint(); // get the most recent dewpoint value
- void update(SHT_acc accuracy); // update stored values from sensor
+ int update(SHT_acc accuracy); // update stored values from sensor
protected:
byte read_byte(bool send_ack);
frederic blanc
