forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Milestone
Description
CircuitPython version and board name
Adafruit CircuitPython 10.0.3 on 2026-01-05; ESP32S3-TOUCH-LCD-2Code/REPL
cam = espcamera.Camera(
data_pins=[board.CAM_D0, board.CAM_D1, board.CAM_D2, board.CAM_D3,
board.CAM_D4, board.CAM_D5, board.CAM_D6, board.CAM_D7],
external_clock_pin=board.CAM_XCLK,
pixel_clock_pin=board.CAM_PCLK,
vsync_pin=board.CAM_VSYNC,
href_pin=board.CAM_HREF,
pixel_format=espcamera.PixelFormat.RGB565,
frame_size=espcamera.FrameSize.QVGA,
i2c=i2c,
external_clock_frequency=20_000_000,
framebuffer_count=2
)
while True:
frame = cam.take(1)
display_bus.send(0x36, b'\x70')
display_bus.send(0x2A, struct.pack(">HH", 0, 319))
display_bus.send(0x2B, struct.pack(">HH", 0, 239))
display_bus.send(44, frame)
if not button.value:
print("framebuffer_count without reconfigure:", cam.framebuffer_count)
cam.reconfigure(
pixel_format=espcamera.PixelFormat.JPEG,
frame_size=espcamera.FrameSize.QVGA,
framebuffer_count=2
)
time.sleep(0.1)
jpeg = cam.take(1)
cam.reconfigure(
pixel_format=espcamera.PixelFormat.RGB565,
frame_size=espcamera.FrameSize.QVGA,
framebuffer_count=2
)
time.sleep(0.1)
print("framebuffer_count after reconfigure:", cam.framebuffer_count)Behavior
framebuffer_count is set to 2 before reconfigure() is called, afterwards it is set to 1 despite explicitly setting to 2.
Description
No response
Additional information
No response