Skip to content

circuitpython for M5Stack Timer Camera X with ESP32 does not work with camera #9907

Open
@simsong

Description

@simsong

CircuitPython version

Adafruit CircuitPython 9.2.1 on 2024-11-20; M5Stack Timer Camera X with ESP32

Board ID:m5stack_timer_camera_x

Code/REPL

import busio
import board
import espcamera
i2c = busio.I2C(scl=board.SCL, sda=board.SDA)
data_pins=[board.D2,board.D3,board.D4,board.D5,board.D6,board.D7,board.D8,board.D9]
c = espcamera.Camera(data_pins=data_pins,pixel_clock_pin=board.XCLK,
      vsync_pin=board.VSYNC,href_pin=board.HREF,
      i2c=i2c,pixel_format=espcamera.PixelFormat.JPEG)

Behavior

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
espidf.IDFError: Operation or feature not supported

It is not clear how to use the camera. I can find no sample code using CircuitPython.
Note that the solution at #9155 no longer works, because the board module no longer supports the "full example" that allegedly works under 9.1.3:

>>> dir(board)
['__class__', '__name__', 'BAT_ADC', 'BAT_HOLD', 'BM8563_I2C', 'BM8563_SCL', 'BM8563_SDA', 'D', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'D9', 'G13', 'G4', 'HREF', 'I2C', 'LED', 'PCLK', 'RESET', 'SCL', 'SDA', 'SSCB_I2C', 'SSCB_SCL', 'SSCB_SDA', 'VSYNC', 'XCLK', '__dict__', 'board_id']
>>> 

and while we are at it:

>>> dir(espcamera)
['__class__', '__name__', 'Camera', 'FrameSize', 'GainCeiling', 'GrabMode', 'PixelFormat', '__dict__']
>>> 

Description

There seems to be no obvious way open the camera from CircuitPython.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions