Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
import time, pyb from pyb import UART
uart = UART(3, 9600) #参数1:使用串口3 参数2:波特率是4800 led1 = pyb.LED(1) #红 led2 = pyb.LED(2) #绿 led3 = pyb.LED(3) #蓝 while(True): #串口发送数据 uart.writechar(-1)#发送数字 time.sleep(3)
你单片机那里, 解析成 signed char.