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).
请问uart.readchar()和uart.readline(),我看到readchar()是从总线上读取数据,那么请问假如STM32发送数字1.下面的代码中,readchar()能读出1嘛? if uart.any(): a=.uart.readchar()
可以读出数字类型的1。 前提是STM32发送的是数字1,而不是字符'1'。