Skip to content
MakeCode package for the ☒SL01 - beta
TypeScript Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
LICENSE
Makefile
README.md
icon.png
pxt.json
sl01.ts
test.ts
tsconfig.json

README.md

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
SL01=github:xinabox/pxt-SL01
You can’t perform that action at this time.