Skip to content

Commit 31bf3b2

Browse files
committed
Fixed README formatting
1 parent 72bd7e7 commit 31bf3b2

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.markdown

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHT1x Temperature / Humidity Sensor Library for Arduino
22
=======================================================
3-
Copyright 2009 Jonathan Oxer <jon@oxer.com.au> / <www.practicalarduino.com>
3+
Copyright 2009 Jonathan Oxer <jon@oxer.com.au> / <www.practicalarduino.com>
44
Copyright 2008 Maurice Ribble <ribblem@yahoo.com> / <www.glacialwanderer.com>
55

66
Provides a simple interface to the SHT1x series (SHT10, SHT11, SHT15)
@@ -31,17 +31,26 @@ example we created an object called "sht1x", but it could have been
3131
called whatever you like. A complete example program is included with
3232
the library and can be accessed from the File->Examples->SHT1x menu.
3333

34-
### float sht1x.readTemperatureC() ###
34+
### readTemperatureC() ###
35+
36+
float tempC = sht1x.readTemperatureC();
37+
3538
Returns a float within the valid range of the sensor of -40 to +123.8.
3639
A value of -40 is returned in the event of a communications error with
3740
the module.
3841

39-
### float sht1x.readTemperatureF() ###
42+
### readTemperatureF() ###
43+
44+
float tempF = sht1x.readTemperatureF();
45+
4046
Returns a float within the valid range of the sensor of -40 to +254.9C.
4147
A value of -40 is returned in the event of a communications error with
4248
the module.
4349

44-
### float sht1x.readHumidity() ###
50+
### readHumidity() ###
51+
52+
float humidity = sht1x.readHumidity();
53+
4554
Returns a float within the valid range of the sensor of 0 to 100%.
4655
A value of -4.4 is returned in the event of a communication error with
4756
the module.

0 commit comments

Comments
 (0)