UV Light

Python Library for Si1133 UV, IR, and Visible Light Sensor.

Python Library

Turta_UV_Light library is responsible for reading UV Index, IR light, and visible light data from the Si1133 sensor.

Initialization

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.

Basic Members

Read UV

Reads the UV Index value.

read_uv()
  • Parameters

    • None

  • Returns

    • Float: UV Index.

Read IR

Reads the IR value.

read_ir()
  • Parameters

    • None

  • Returns

    • Int: Raw IR value.

Finalizer

When exiting from the program, the library stops the sensor.

Last updated