CircuitPython on Wio Terminal
This wiki introduce how to install and run the official CircuitPython by Adafruit Industries on the Seeeduino Wio Terminal!
CircuitPython is a programming language designed to simplify experimenting and learning to program on low-cost microcontroller boards. It makes getting started easier than ever with no upfront desktop downloads needed. Once you get your board set up, open any text editor, and get started editing code. For more info, please refer to here.
Download the official CircuitPython Bootloader for Seeeduino Wio Terminal. A
.uf2should be downloaded.
Plug-in the Seeeduino Wio Terminal to your PC via USB Type-C.
Entering the bootloader mode by sliding the power switch twice quickly. For more reference, please also see here.
- An external drive named
Arduinoshould appear in your PC. Drag the the downloaded CircuitPython uf2 files to the
- Once loaded the CircuitPython bootloader, unplug the USB Type-C and re-connect. A new external drive called
- Now, CircuitPython is loaded on Seeeduino Wio Terminal! All you need to do it's to write you python program and name it
main.pyand drag it onto the
You should also see the LCD on the Wio Terminal lights up, the CircuitPython also supports the native LCD display!
Blink using CircuitPython:
Note: simply copy and save the following code and name it
main.py, and drag it to
from digitalio import DigitalInOut, Direction
led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT
led.value = True
led.value = False
You should see the built-in LED starts to blink!
Built-in Light Sensor
Run the following to obtain the built-in light sensor value:
from analogio import AnalogIn
analog_in = AnalogIn(board.LIGHT) # Light Sensor pin on Wio Terminal
return (pin.value * 3.3) / 65536
print("Light Sensor Voltage: ", get_voltage(analog_in))
For more CircuitPython API reference, please visit CircuitPython Essentials.
Please submit any technical issue into our forum