Open GermanSheepDog opened 4 years ago
Hello, there are some challenges with M5Camera's. There are the models
The different between A model an B model are the camera pins SCCB Data and vertical sync. I like to expand the KConfig and the camera.h file:
config CAMERA_MODEL_ESP_EYE bool "ESP_EYE DevKit" config CAMERA_MODEL_M5_B bool "M5Camera+M5CameraX+M5CameraF Model B" config CAMERA_MODEL_M5_A bool "M5Camera+M5CameraX Model A" config CAMERA_MODEL_AI_THINKER bool "ESP32-CAM by AI-Thinker"
#elif CONFIG_CAMERA_MODEL_M5_B #define CAMERA_PIN_PWDN -1 #define CAMERA_PIN_RESET 15 #define CAMERA_PIN_SIOD 22 #define CAMERA_PIN_SIOC 23 #define CAMERA_PIN_XCLK 27 #define CAMERA_PIN_D0 32 #define CAMERA_PIN_D1 35 #define CAMERA_PIN_D2 34 #define CAMERA_PIN_D3 5 #define CAMERA_PIN_D4 39 #define CAMERA_PIN_D5 18 #define CAMERA_PIN_D6 36 #define CAMERA_PIN_D7 19 #define CAMERA_PIN_VSYNC 25 #define CAMERA_PIN_HREF 26 #define CAMERA_PIN_PCLK 21 #elif CONFIG_CAMERA_MODEL_M5_A #define CAMERA_PIN_PWDN -1 #define CAMERA_PIN_RESET 15 #define CAMERA_PIN_SIOD 25 #define CAMERA_PIN_SIOC 23 #define CAMERA_PIN_XCLK 27 #define CAMERA_PIN_D0 32 #define CAMERA_PIN_D1 35 #define CAMERA_PIN_D2 34 #define CAMERA_PIN_D3 5 #define CAMERA_PIN_D4 39 #define CAMERA_PIN_D5 18 #define CAMERA_PIN_D6 36 #define CAMERA_PIN_D7 19 #define CAMERA_PIN_VSYNC 22 #define CAMERA_PIN_HREF 26 #define CAMERA_PIN_PCLK 21
In addition it would be nice if the LED-pin could be set in config.h and not separately in Kconfig.
The little different at the M5Camera's and the separately LED configuration cost me hours.
Can you share your code with this implementet?
I too would like to see code for this. I have been looking at getting one of those cameras.
Hello, there are some challenges with M5Camera's. There are the models
The different between A model an B model are the camera pins SCCB Data and vertical sync. I like to expand the KConfig and the camera.h file:
In addition it would be nice if the LED-pin could be set in config.h and not separately in Kconfig.
The little different at the M5Camera's and the separately LED configuration cost me hours.