mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
Add initial support for the M5Stack camera F board
This commit is contained in:
parent
5da262c8da
commit
3211f7cc86
@ -19,6 +19,22 @@ build_flags = ${env.build_flags}
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
[env:esp32M5Stack-Camera-F]
|
||||
board = m5stack-timer-cam
|
||||
build_type = debug
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
${pinoutsM5Stack_Camera_F.build_flags}
|
||||
|
||||
[env:esp32M5Stack-Camera-F_release]
|
||||
board = m5stack-timer-cam
|
||||
build_type = release
|
||||
build_flags = ${env.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
${pinoutsM5Stack_Camera_F.build_flags}
|
||||
|
||||
[env:esp32M5Stack]
|
||||
board = esp32cam
|
||||
build_type = debug
|
||||
|
||||
@ -1,6 +1,43 @@
|
||||
#!! DO NOT CHANGE ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
# IF YOU ARE A USER DO NOT TOUCH THIS FILE
|
||||
|
||||
[pinoutsM5Stack_Camera_F]
|
||||
pwdn_gpio_num = -1
|
||||
reset_gpio_num = 15
|
||||
xclk_gpio_num = 27
|
||||
siod_gpio_num = 25
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 19
|
||||
y8_gpio_num = 36
|
||||
y7_gpio_num = 18
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 5
|
||||
y4_gpio_num = 34
|
||||
y3_gpio_num = 35
|
||||
y2_gpio_num = 32
|
||||
vsync_gpio_num = 22
|
||||
href_gpio_num = 26
|
||||
pclk_gpio_num = 21
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="M5STACK_CAMERA_F"'
|
||||
-DCONFIG_CAMERA_MODULE_M5STACK_CAMERA_F=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsM5Stack_Camera_F.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsM5Stack_Camera_F.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsM5Stack_Camera_F.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsM5Stack_Camera_F.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsM5Stack_Camera_F.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsM5Stack_Camera_F.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsM5Stack_Camera_F.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsM5Stack_Camera_F.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsM5Stack_Camera_F.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESPCAM_M5STACK]
|
||||
pwdn_gpio_num = -1
|
||||
reset_gpio_num = 15
|
||||
|
||||
@ -14,7 +14,8 @@ LEDManager ledManager(LED_BUILTIN);
|
||||
|
||||
#elif CONFIG_CAMERA_MODULE_SWROOM_BABBLE_S3
|
||||
LEDManager ledManager(38);
|
||||
|
||||
#elif DCONFIG_CAMERA_MODULE_M5STACK_CAMERA_F
|
||||
LEDManager ledManager(2);
|
||||
#else
|
||||
LEDManager ledManager(33);
|
||||
#endif // ESP32S3_XIAO_SENSE
|
||||
@ -86,7 +87,8 @@ void setup() {
|
||||
Logo::printASCII();
|
||||
ledManager.begin();
|
||||
|
||||
#ifdef CONFIG_CAMERA_MODULE_SWROOM_BABBLE_S3 // Set IR emitter strength to 100%.
|
||||
#ifdef CONFIG_CAMERA_MODULE_SWROOM_BABBLE_S3 // Set IR emitter strength to
|
||||
// 100%.
|
||||
const int ledPin = 1; // Replace this with a command endpoint eventually.
|
||||
const int freq = 5000;
|
||||
const int ledChannel = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user