用寄存器控制pyboard的LED 用寄存器控制pyboard的LED pyb.LED(1).on()pyb.LED(1).off() 但是,pyb中也可以通过寄存器去控制LED,如: import stmLED1 = 13stm.mem16[stm.GPIOA+stm.GPIO_BSRRL]|=(1LED1)stm.mem16[stm.GPIOA+stm.GPIO_BSRRH]|=(1LED1)LED4 = 4stm.mem16[... 吃瓜阿阳 2022-11-07 161 #MicroPython #pyboard #Python