Limited items in stock
View Purchasing OptionsCircuitPython is an open-source framework tailored for low-cost microcontroller boards and constrained hardware devices, making it perfect for beginners and educators. A variant of the popular programming language Python, CircuitPython has been designed to be easy to learn and use. By simply connecting to a personal computer, you can write and test code directly on the microcontroller.
CircuitPython also facilitates rapid firmware development with its extensive hardware support and comprehensive built-in libraries. Among the supported microcontrollers is the Raspberry Pi RP2040, which allows us to develop firmware for the ANAVI Handle and other devices built using the Seeed Studio XIAO RP2040 module.
Out of the box, ANAVI Handle comes with open source firmware written in CircuitPython installed. So, under normal circumstances, installing CircuitPython should not be necessary. However, if you need to reset the ANAVI Handle and restore it to factory settings, follow these exact steps as shown in the video above to install CircuitPython and the open-source firmware:
Download CircuitPython for XIAO RP2040
Press and hold the B button on XIAO RP2040 and ANAVI Handle.
Copy the downloaded CircuitPython file to XIAO RP2040 and ANAVI Handle.
Wait until ANAVI Handle and XIAO RP2040 complete installation of CircuitPython.
Copy firmware files from GitHub to XIAO RP2040
Install CircuitPython dependencies on XIAO RP2040 to install CircuitPython
For this task, it is recommended that you use CircUp. It is an open-source command-line tool, developed by Adafruit Industries to manage CircuitPython libraries. It simplifies updating, installing, and uninstalling libraries on CircuitPython-compatible microcontrollers. First and foremost, ensure that you have circup
installed in your Python environment on your personal computer. If it’s not already installed, you can do so with the following command:
pip3 install circup
With circup
installed and your CircuitPython device connected use the following command to install:
circup install adafruit_bus_device adafruit_hid adafruit_nunchuk adafruit_seesaw neopixel
Or the following command to update an existing version:
circup update
If you need a lightweight and user-friendly IDE for writing and debugging CircuitPython code, consider using Thonny. This free, open-source IDE is beginner-friendly and works on Windows, macOS, and Linux distributions. Thonny supports development on microcontrollers, making it a versatile choice for novice and experienced programmers alike who are working on CircuitPython or MicroPython projects. You can even use Thonny IDE on a Raspberry Pi single-board computer with the Raspberry Pi OS!
Thonny supports various Python environments, including standard Python and CircuitPython, making it suitable for various programming tasks. To use Thonny with CircuitPython on XIAO RP2040, follow these steps:
Download and install Thonny.
Launch Thonny and go to Tools > Options… from the top menu.
Click on the Interpreter tab.
Select CircuitPython (generic) as an interpreter.
Choose the port for the XIAO RP2040.
Click OK.
Select File > Open and choose a file from the CircuitPython device.
This CircuitPython tutorial is beneficial not only for the ANAVI Handle, but also for our other open-source hardware devices powered by the XIAO RP2040. These include the ANAVI Knob 1, ANAVI Knob 3, ANAVI Macro Pad 10, ANAVI Arrows, and ANAVI Macro 12 mechanical keyboards.
One last thing: the ANAVI Handle crowdfunding campaign ends this week, so here’s a huge thank you to everyone who has already supported this entirely open-source project. If you haven’t ordered your ANAVI Handle yet, now is the perfect time to ensure you become one of the first owners!