Example: 50-OpenMV-Boards/53-N6-Boards/80-Low-Power/sensor_sleep.py
# 本作品采用MIT许可证授权。
# Copyright (c) 2013-2026 OpenMV LLC. All rights reserved.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# 传感器睡眠模式示例。
# This example demonstrates the sensor sleep mode.
import csi
csi0 = csi.CSI()
csi0.reset() # 重置并初始化传感器。
csi0.pixformat(csi.RGB565) # 将像素格式设置为RGB565 (or GRAYSCALE)
csi0.framesize(csi.QVGA) # 将帧大小设置为QVGA (320x240)
csi0.snapshot(time=3000) # 捕获3000毫秒的帧。
csi0.sleep(True) # Enable sensor sleep mode.
while True:
pass