CircuitPython now supports native LCD of Wio Terminal!

It’s time to create your main.py and drag it onto the CIRCUITPY drive!

Last week we announced that the Wio Terminal is officially supported by CircuitPython! Thanks to CircuitPython, now we added the LCD driver to Wio Terminal in CircuitPython and it runs so well!

Get started CircuitPython on 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. 

Please follow our wiki page to go through how to install CircuitPython on Wio Terminal. This wiki introduces how to install and run the official CircuitPython by Adafruit Industries on the Wio Terminal!

You can also simply download the official CircuitPython Bootloader for Seeeduino Wio Terminal and drag uf2 file into your Arduino drive in the bootloader mode.

You will figure out it is fast to create your main.py and drag it onto the CIRCUITPY drive!

REPL sync between putty and Wio Terminal with CircuitPython!

CircuitPython’s native display library – displayio.

The Wio Terminal itself is equipped with a 2.4” LCD Screen, onboard IMU(LIS3DHTR), microphone, buzzer, microSD card slot, light sensor, and infrared emitter(IR 940nm). 

In the below GIF, we use the onboard light sensor to read data from the light sensor of Wio Terminal, using CircuitPython’s native display library – displayio. Please check User-friendly guide to CircuitPython’s native display library – displayio to get a step-by-step tutorial on how to use the CircuitPython Display LCD library.

Example code of reading data from the light sensor of Wio Terminal

import time
import board
from analogio import AnalogIn
 
analog_in = AnalogIn(board.LIGHT)
 
def get_voltage(pin):
    return (pin.value * 3.3) / 65536
 
while True:
    print("Light Sensor Voltage: ", get_voltage(analog_in))
    time.sleep(0.1)

About Author

Calendar

July 2020
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031