Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simsong opened this issue Dec 22, 2024 · 0 comments
Milestone

Comments

@simsong
Copy link

simsong commented Dec 22, 2024

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

@simsong simsong added the bug label Dec 22, 2024
@dhalbert dhalbert added the esp32 label Dec 22, 2024
@dhalbert dhalbert added this to the 9.2.x milestone Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants