mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-10 21:46:55 +03:00
First Running Version
This commit is contained in:
@@ -313,8 +313,8 @@
|
|||||||
// ETH_EN activates power for the Ethernet
|
// ETH_EN activates power for the Ethernet
|
||||||
// PER_EN activates power for camera,leds,and SDcard, Battery measurement voltage divider
|
// PER_EN activates power for camera,leds,and SDcard, Battery measurement voltage divider
|
||||||
|
|
||||||
#define ETH_EN GPIO_NUM_45
|
#define ETH_ENABLE GPIO_NUM_45
|
||||||
#define PER_EN GPIO_NUM_46
|
#define PER_ENABLE GPIO_NUM_46
|
||||||
|
|
||||||
// SD card (operated with SDMMC peripheral)
|
// SD card (operated with SDMMC peripheral)
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
@@ -331,27 +331,6 @@
|
|||||||
#define GPIO_SDCARD_D3 GPIO_NUM_13
|
#define GPIO_SDCARD_D3 GPIO_NUM_13
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
#define PWDN_GPIO_NUM -1
|
|
||||||
#define RESET_GPIO_NUM -1
|
|
||||||
#define XCLK_GPIO_NUM GPIO_NUM_15
|
|
||||||
#define SIOD_GPIO_NUM GPIO_NUM_4
|
|
||||||
#define SIOC_GPIO_NUM GPIO_NUM_5
|
|
||||||
|
|
||||||
#define Y9_GPIO_NUM GPIO_NUM_16
|
|
||||||
#define Y8_GPIO_NUM GPIO_NUM_17
|
|
||||||
#define Y7_GPIO_NUM GPIO_NUM_18
|
|
||||||
#define Y6_GPIO_NUM GPIO_NUM_12
|
|
||||||
#define Y5_GPIO_NUM GPIO_NUM_10
|
|
||||||
#define Y4_GPIO_NUM GPIO_NUM_8
|
|
||||||
#define Y3_GPIO_NUM GPIO_NUM_9
|
|
||||||
#define Y2_GPIO_NUM GPIO_NUM_11
|
|
||||||
#define VSYNC_GPIO_NUM GPIO_NUM_6
|
|
||||||
#define HREF_GPIO_NUM GPIO_NUM_7
|
|
||||||
#define PCLK_GPIO_NUM GPIO_NUM_13
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#define CAM_PIN_PWDN GPIO_NUM_NC
|
#define CAM_PIN_PWDN GPIO_NUM_NC
|
||||||
#define CAM_PIN_RESET GPIO_NUM_NC //software reset will be performed
|
#define CAM_PIN_RESET GPIO_NUM_NC //software reset will be performed
|
||||||
#define CAM_PIN_XCLK GPIO_NUM_15
|
#define CAM_PIN_XCLK GPIO_NUM_15
|
||||||
|
|||||||
@@ -219,12 +219,12 @@ extern "C" void app_main(void)
|
|||||||
// gpio_pad_select_gpio(ETH_EN);
|
// gpio_pad_select_gpio(ETH_EN);
|
||||||
// gpio_set_direction(ETH_EN, GPIO_MODE_OUTPUT);
|
// gpio_set_direction(ETH_EN, GPIO_MODE_OUTPUT);
|
||||||
// gpio_set_level(ETH_EN, 0);
|
// gpio_set_level(ETH_EN, 0);
|
||||||
// PER_EN activates power for camera,leds,and SDcard, Battery measurement voltage divider
|
// PER_ENABLE activates power for camera,leds,and SDcard, Battery measurement voltage divider
|
||||||
gpio_pad_select_gpio(PER_EN);
|
gpio_pad_select_gpio(PER_ENABLE);
|
||||||
gpio_set_direction(PER_EN, GPIO_MODE_OUTPUT);
|
gpio_set_direction(PER_ENABLE, GPIO_MODE_OUTPUT);
|
||||||
gpio_set_level(PER_EN, 1);
|
gpio_set_level(PER_ENABLE, 1);
|
||||||
xDelay = 1000 / portTICK_PERIOD_MS;
|
xDelay = 1000 / portTICK_PERIOD_MS;
|
||||||
ESP_LOGD(TAG, "BOARD_ESP32_S3_ALEKSEI - Switch on Power for camera, ... : sleep for: %ldms", (long) xDelay * CONFIG_FREERTOS_HZ/portTICK_PERIOD_MS);
|
ESP_LOGI(TAG, "BOARD_ESP32_S3_ALEKSEI - Switch on Power for camera, ... : sleep for: %ldms", (long) xDelay * CONFIG_FREERTOS_HZ/portTICK_PERIOD_MS);
|
||||||
vTaskDelay( xDelay );
|
vTaskDelay( xDelay );
|
||||||
#endif //ETH_EN &&
|
#endif //ETH_EN &&
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user