I am using a Circuit Playground Express from Adafruit, and I'm programming it with Circuit Python.
I want to read data transmitted from the computer to which the Circuit Playground Express is connected via USB. Using input()
works fine, but I would rather get the buffer of the serial instead, so that the loop would go on while there's no input. Something like serial.read()
.
import serial
does not work on Circuit Python, or maybe I must install something. Is there anything else I could do to read the serial buffer using Circuit Python?
sys.stdin
. If you don't get anywhere with this you'll probably have more luck asking on the Micropython forum or trying any help resources available from Adafruit. – Toothlike