logo

串口助手不回数

2018-11-12 15:47
T
茗严

使用星瞳回数的串口助手,使用其他串口助手不回数

import sensor, image, time,pyb

led = pyb.LED(3)
led.on()
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.RGB565) # use RGB565.
sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed.
sensor.skip_frames(10) # Let new settings take affect.
sensor.set_auto_whitebal(False) # turn this off.
clock = time.clock() # Tracks FPS.
while(True):
    clock.tick() # Track elapsed milliseconds between snapshots().
    img = sensor.snapshot() # Take a picture and return the image.
    a = img.get_pixel(75,60)
    print("A",a,"B")
I
网红小智智 星瞳科技

什么意思?没看懂?:smiling_face_with_open_mouth_cold_sweat:

T
茗严

同样一块板子,星瞳的串口助手看见打印的数据,别的串口助手打印不出来

eb17b507-0794-4069-b99d-1450e327ebc2.png
f2c3a52e-8d01-4fa2-b0e9-168a0c6aa0e7.png
I
网红小智智 星瞳科技

emmm,不太清楚了,应该是哪里的操作不一样,或者设置不一样。

星瞳串口助手的bug我能改,但是XCOM我肯定是没法改。:face_with_tears_of_joy:

2018-11-12 16:12
T
茗严

我是自己写了一个C++串口的代码接收打印的数据,一开始收不到数,先用形同串口助手接收一次数据,再使用我自己的代码就能接收到数据了,重新上电后还是收不到,像是硬件的串口被星瞳串口助手激活了一样

I
网红小智智 星瞳科技

星瞳串口助手并没有什么后门,并且是完全开源的,你可以看一下源码。

https://github.com/SingTown/SingTownSerialport