Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

xinabox/pxt-SL01-archived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Issues GitHub Commit Maintained Build status badge Build status badge Developer

xChip SL01

This is the MakeCode Package for xChip SL01

Usage

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.

Blocks

Initialize 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.

SL01 Ambient Light (Lux)

Instructs the Sensor to perform a LUX measurement.

SL01.getLUX()

SL01 UVA (mW/cm^2)

Instructs the Sensor to perform a UVA measurement.

SL01.getUVA()

Supported targets

  • for PXT/microbit
  • for PXT/CC03
SL01=github:xinabox/pxt-SL01