@uzbd 理论上就是一直发送呀,现在问题是就在正常发送的代码里加上lcd显示,本来应该一直发送的就只能发送一次了
U
u1dm
@u1dm
0
声望
3
楼层
20
资料浏览
0
粉丝
0
关注
u1dm 发布的帖子
-
RE: 使用LCD屏幕不占用P1(串口Tx)引脚,为什么还是无法使用P1正常发送数据?
-
RE: 使用LCD屏幕不占用P1(串口Tx)引脚,为什么还是无法使用P1正常发送数据?
理论上就是一直发送呀,现在问题是就在正常发送的代码里加上lcd显示,本来应该一直发送的就只能发送一次了
-
使用LCD屏幕不占用P1(串口Tx)引脚,为什么还是无法使用P1正常发送数据?
import sensor, image, time from pyb import UART import display sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize for LCD Shield. lcd = display.SPIDisplay() uart = UART(1, 115200) # 矩形坐标通过UART1发送 while True: uart.write(b'a') lcd.write(sensor.snapshot()) # Take a picture and display the image.
用这段代码只能发送一次数据,如果把发送放在lcd.write(sensor.snapshot()) # Take a picture and display the image.这段代码后面,那么一次数据都发送不了