例程讲解31-TV-Shield -> tv.py 图传

视频教程30 - 有线图传扩展板:https://singtown.com/learn/50521/

视频教程31 - 无线图传扩展板:https://singtown.com/learn/50535/

# 图传
#
# 注意: 运行此代码需要图传扩展板
#
# 图传扩展板可以实时的查看framebuffer的视频

import sensor, image, tv

sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
sensor.set_framesize(sensor.QQVGA)
tv.init() # Initialize the tv.
tv.channel(8) # For wireless video transmitter shield
while(True):
    tv.display(sensor.snapshot()) # Take a picture and display the image.

results matching ""

    No results matching ""