This is the MakeCode Package for xChip SL01
To use this package, go to https://pxt.microbit.org, click Add package and paste the following link in the search bar - https://github.com/xinabox/pxt-SL01.
Initializes the SL01 Light Sensor.
Sets up the SL01 and prepares it for use by the micro:bit.
SL01.init();
This block must be placed before any other SL01 related blocks.
Instructs the Sensor to perform a LUX measurement.
SL01.getLUX()
Instructs the Sensor to perform a UVA measurement.
SL01.getUVA()
- for PXT/microbit
- for PXT/CC03
SL01=github:xinabox/pxt-SL01