The SW01 xChip is equipped with a weather sensor that is capable of measuring the temperature, humidity and atmospheric pressure. It is based on the BME280 manufactured by Bosch.
The humidity sensor provides an extremely fast responce time for fast context awareness application and high overall accuracy over a wide temperature range.
The pressure sensor is an absolute barometric pressure sensor with extremely high accuracy and resolution.
The integrated temperature sensor has been optimized for lowest noise and highest resolution. Its output is used for temperature compensation of the pressure and humidity sensors and can also be used for estimation of the ambient temperature.
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-SW01")
- 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-SW01
from xCore import xCore
from xSW01 import xSW01
SW01 = xSW01()
while True:
print(SW01.values())
xCore.sleep(1000)