SHTC3 - Temperature and humidity sensor
This is a temperature/humidity sensor using I2C bus.
Available only when board BEHAVIOR <PAL_AMB>
is loaded. Procedures of common methods except begin()
are executed in board BEHAVIOR.
Wire.begin()
: initialize bus 2..begin()
: Start sensor operation 3.
wait a few ms
.available()
becomes true 5.
.get_temp(), .get_humid()`: read values
Before calling begin()
method, Wire is put into operation by Wire.begin()
.
Keep the Wire bus in operation just before sleep (the Wire is automatically restored after returning from sleep).
Read temperature. get_temp()
returns a value in °C and get_temp_cent()
returns an integer value that is 100 times the value in °C.
On error, values between -32760 and -32768 are returned.
Reads the humidity. get_humid()
returns an integer value in % and get_humid_per_dmil()
returns an integer value in % times 100.
On error, values between -32760 and -32768 are returned.
Allocates and initializes memory space for the sensor.
Starts acquiring a sensor. Wait about 5 ms before reading the sensor value.
Does not support end()
.
In the case of a sensor with wait processing, arg1
is given E_EVENT_TICK_TIMER
or E_EVENT_START_UP
to indicate the elapse of time. After calling this method, if the required time has elapsed, it will be available and the sensor value can be read.
Returns true
when the sensor satisfies the readout condition.
Returns true
when the sensor is connected.