UV Light
Python Library for Si1133 UV, IR, and Visible Light Sensor.
Turta_UV_Light library is responsible for reading UV Index, IR light, and visible light data from the Si1133 sensor.
Add the following statement to the top of your Python code.
from turta_sensoruhat import Turta_UV_Light
Then, create an instance of the UVAmbientLightSensor class.
light = Turta_UV_Light.UVAmbientLightSensor()
Now you're ready to access the library by calling its instance.
Reads the UV Index value.
read_uv()
Parameters
None Returns
Float: UV Index.
Reads the IR value.
read_ir()
Parameters
None Returns
Int: Raw IR value.
When exiting from the program, the library stops the sensor.
Last modified 2yr ago