File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1010
1111from machine import UART
1212
13- uart = UART (1 , 9600 ) # init with given baudrate
14- uart .init (9600 , bits = 8 , parity = None , stop = 1 ) # init with given parameters
15- uart .read (10 ) # read 10 characters, returns a bytes object
16- uart .read () # read all available characters
17- uart .readline () # read a line
18- uart .readinto (buf ) # read and store into the given buffer
19- uart .write ('abc' ) # write the 3 characters
13+ uart = UART (1 , 115200 ) # init with given baudrate
14+ uart .init (115200 , bits = 8 , parity = None , stop = 1 ) # init with given parameters
15+ uart .read (10 ) # read 10 characters, returns a bytes object
16+ uart .read () # read all available characters
17+ uart .readline () # read a line
18+ uart .write ('abc' ) # write the 3 characters
You can’t perform that action at this time.
0 commit comments