You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**AM232X(TwoWire \*wire = &Wire)** constructor, optionally set Wire0..WireN.
45
-
-**bool begin(uint8_t sda, uint8_t scl)** for ESP32 alike devices, returns true if device is connected
46
-
-**bool begin()** for AVR alike devices, returns true if device is connected
47
-
-**bool isConnected(uint16_t timeout = 3000)** returns true if device-address is found on I2C bus. As the device can be in sleep modus it will retry for the defined timeout (in micros) with a minimum of 1 try. minimum = 800 us and maximum = 3000 us according to datasheet.
49
+
-**bool begin(uint8_t sda, uint8_t scl)** for ESP32 alike devices, returns true if device is connected.
50
+
-**bool begin()** for AVR alike devices, returns true if device is connected.
51
+
-**bool isConnected(uint16_t timeout = 3000)** returns true if device-address is found on I2C bus.
52
+
As the device can be in sleep modus it will retry for the defined timeout (in micros) with a minimum of 1 try.
53
+
minimum = 800 us and maximum = 3000 us according to datasheet.
48
54
49
55
50
56
### Base calls
51
57
52
-
-**int read()** fetches the values from the sensor
53
-
-**float getHumidity()** returns the last read humidity
54
-
-**float getTemperature()** returns the last read temperature
58
+
-**int read()** fetches the values from the sensor.
59
+
-**float getHumidity()** returns the last read humidity.
60
+
-**float getTemperature()** returns the last read temperature.
55
61
56
62
57
63
### Misc
@@ -75,8 +81,7 @@ check datasheet for details.
75
81
See examples
76
82
77
83
In setup() you have to call the **begin()** to initialize
78
-
the Wire library and do an initial **read()** to fill the
79
-
variables temperature and humidity.
84
+
the Wire library and do an initial **read()** to fill the variables temperature and humidity.
80
85
To access these values one must use **getTemperature()** and **getHumidity()**.
81
86
82
87
Note that the sensor can go into sleep mode and one might need to call **wakeUp()**
@@ -100,9 +105,10 @@ have the "boot time" constraint mentioned above.
100
105
Which method fit your application depends on your requirements and constraints.
0 commit comments