Skip to content

Commit 39e04bc

Browse files
gijsiopeter-pycom
authored andcommitted
add docs for new sensor API
1 parent 447661c commit 39e04bc

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

content/firmwareapi/pycom/expansionboards/LTR329ALS01.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ Creates a LTR329ALS01 object. Constructor must be passed a Pycoproc or I2C objec
1717

1818
### LTR329ALS01.light()
1919

20-
Read the light levels of both light sensors. Returns a tuple with two values for light levels in lux: `(blue, red)`, between 0-65535.
20+
Read the light levels of both light sensors. Returns a tuple with two values for light levels: `(blue, red)`, between 0-65535.
21+
22+
### LTR329ALS01.lux()
23+
24+
Calculate the illuminance using the readings of the light sensor. Returns a single value in lux.
2125

2226
## Constants
2327

content/firmwareapi/pycom/expansionboards/SI7006A20.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@ Read the external temperature of the sensor. Returns a float with the temperatur
2222

2323
### SI7006A20.dew_point()
2424

25-
Calculates the dew point temperature for the current temperature and humidity measurement.
25+
Calculates the dew point temperature for the current temperature and humidity measurement.
26+
27+
### SI7006A20.heater_control(state)
28+
29+
Enable or disable the internal heating element by setting state to `True` or `False` respectively. The internal heating element can be used to remove any condensation from the temperature sensor in order to get more accurate readings. Note that this will increase the temperature readings. By default, the heater is disabled.
30+
31+
### SI7006A20.read_heater_reg()
32+
33+
Read the current setting of the internal heater. This will return a value between 0 and 15, where 0 corresponds with 3.09 mA and 15 with 94.20 mA. All values in between scale linearly
34+
35+
### SI7006A20.write_heater_reg(heater_value)
36+
37+
Write the current setting of the internal heater. Use a value between 0 and 15, where 0 corresponds with 3.09 mA and 15 with 94.20 mA.

0 commit comments

Comments
 (0)