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.
Fork of SHT_v1 by
Diff: SHT.h
- Revision:
- 1:0dbbb4802508
- Parent:
- 0:df1c8f2961a1
diff -r df1c8f2961a1 -r 0dbbb4802508 SHT.h
--- 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);
