REPL Pyboard over serial not USB

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: REPL Pyboard over serial not USB

Post by dhylands » Sat Apr 07, 2018 3:01 pm

I normally use the UART.any() method if I want to poll to check if a character is available:
http://docs.micropython.org/en/latest/p ... b.UART.any

You can also call UART.readchar() which waits for a small timeout:
http://docs.micropython.org/en/latest/p ... T.readchar

Post Reply