summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/uart.py
blob: 6e0118d155409b9bd9cf63ae556ddafea9b72a16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
from pyb import UART

uart = UART(1)
uart = UART(1, 9600)
uart = UART(1, 9600, bits=8, stop=1, parity=None)
print(uart)

uart.init(1200)
print(uart)

uart.any()
uart.send(1, timeout=500)