Python-SL06
The SL06 xChip features advanced Gesture detection, Proximity detection, Digital Ambient Light Sense (ALS) and Colour Sense (RGBC). It is based on the popular APDS9960 manufactured by Avago Technologies.
Usage
Mu-editor
Download Mu-editor
CW01 and CW02
CC03, CS11 and CW03
- Download the .UF2 file for CC03/CS11/CW03 CircuitPython and flash it to the board.
- TO DO
MicroBit
Raspberry Pi
Requires Python 3
pip3 install xinabox-SL06
Example
from xCore import xCore
from xSL06 import xSL06
SL06 = xSL06()
SL06.init()
SL06.enableGestureSensor()
while True:
if SL06.isGestureAvailable():
dir = SL06.getGesture()
print(dir)
xCore.sleep(100)