TODO - Insert description
Download Mu-editor
- Use XinaBoxUploader and flash MicroPython to the CW01/CW02.
- Download Python packages from the REPL with the following code:
import network import upip sta_if = network.WLAN(network.STA_IF) sta_if.active(True) sta_if.connect("ssid", "password") upip.install("xinabox-sg33")
- Download the .UF2 file for CC03/CS11/CW03 CircuitPython and flash it to the board.
- TO DO
- TO DO
Requires Python 3
pip3 install xinabox-sg33
from xCore import xCore
from xSG33 import xSG33
SG33 = xSG33()
while True:
if SG33.dataAvailable() == True:
SG33.getAlgorithmResults()
print(SG33.getTVOC())
print(SG33.getCO2())
xCore.sleep(1000)