Adafruit, the company producing the well-known and community loved circuit boards and sensor chips, announced the release of CircuitPython 6.1.0.
CircuitPython is a Python-based programming language to read data from and control boards and sensors. It can easily be installed through Python's pip (here for a Raspberry Pi):
root@raspberrypi:~# sudo pip3 install --upgrade adafruit-python-shell
root@raspberrypi:~# wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/raspi-blinka.py
root@raspberrypi:~# sudo python3 raspi-blinka.py
Existing users upgrading from the previous release 6.0.1 (or earlier) should note the following breaking changes:
i2cslave
is nowi2cperipheral
and the class in it is changed as well.- The
stop
kwarg has been removed fromI2C.writeto()
. If no stop is desired, then usewriteto_then_readfrom
. - The default speed of busio.I2C and board.I2C is now 100khz, not 400khz as before. Use
busio.I2C
to set the speed explicitly. #3471 Thanks @caternuson, @ladyada, @hierophect and @tannewt _bleio.ConnectionError
has be removed. Code will now raise the nativeConnectionError
instead.