Getting Started
Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.
The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.
Click here to learn more about Adafruit Playground and how to get started.
-
How to Flash and Run CircuitPython on Your Kano Pixel Kit
About the Pixel Kit
The retail Pixel Kit uses an ESP32 (The classic one) (ESP-WROOM-32) with 4MB of flash, which makes it very easy to put things like WLED, Arduino, MicroPython, and CircuitPython onto it.
Flashing CircuitPython onto Your Pixel Kit
To flash CircuitPython onto it, either use Thonny (A python editor for basically anything) or esptool (A Python-based CLI tool for ESP32)
Thonny:
- Click Tools (in bar on top)
- Select "Options..."
- Select "Interpreter"
- Click the dropdown and select CircuitPython (generic)
- Click the underlined text "esptool", this tells Thonny to flash to ESP32
- Select the COM (Windows) or dev/cu.usbmodem (Mac) (Could also be dev/tty.usbserial) port in the Target Port dropdown
- For family select ESP32 (This is what the Pixel Kit has)
- For variant select DOIT • ESP32 Development Board
- Select what CircuitPython version you want in the version dropdown
- Click Install
- Close the installer window
- Select the port for your device
- Click the stop button (Stop/Restart Backend)
- Install the necessary libraries from the bundle in their documentation. neopixel, adafruit_framebuf, adafruit_pixel_framebuf, and led_animation
- Download the CircuitPython Pixel Kit helper libraries from my GitHub repo
- Install it to /lib
- Play around with the Pixel Kit!
esptool:
- Install esptool. This can be done using pip install esptool (Python 2 and lower) or pip3 install esptool (Python 3 and newer)
- Open your Terminal app (Terminal on Mac, Command Prompt on Windows, Bash on Linux)
- Erase the flash on your board. This can be done using esptool --port %PORT% --chip esp32 erase_flash (Python 2 or lower) or python -m esptool --port %PORT% --chip esp32 erase_flash (Python 3 and newer)
- Download the CircuitPython binary from https://circuitpython.org/board/doit_esp32_devkit_v1/
- Run cd Downloads
- Flash the CircuitPython binary to your Pixel Kit. This can be done using esptool --port %PORT% --chip esp32 write_flash -z 0x0 adafruit-circuitpython-doit_esp32_devkit_v1-en_US-10.0.3.bin (Python 2 or lower) or python -m esptool --port %PORT% --chip esp32 write_flash -z 0x0 adafruit-circuitpython-doit_esp32_devkit_v1-en_US-10.0.3.bin (Python 3 and newer)
- Download the CircuitPython Pixel Kit helper libraries from my GitHub repo
- Install it to /lib
- Play around with the Pixel Kit!