Update Sketches.

This commit is contained in:
Zhentao-Lin 2024-07-02 13:40:40 +08:00
parent 7cad01418e
commit 664503cd91
2 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,6 @@ void setup() {
Serial.begin(115200); Serial.begin(115200);
SerialBT.begin("ESP32test"); //Bluetooth device name SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("\nThe device started, now you can pair it with bluetooth!"); Serial.println("\nThe device started, now you can pair it with bluetooth!");
Serial.println("Hello!");
} }
void loop() { void loop() {

View File

@ -34,14 +34,14 @@ const char *password_Router = "********"; //input your wifi passwords
camera_config_t config; camera_config_t config;
void startCameraServer(); void startCameraServer();
void config_init(); void camera_init();
void setup() { void setup() {
Serial.begin(115200); Serial.begin(115200);
Serial.setDebugOutput(true); Serial.setDebugOutput(true);
Serial.println(); Serial.println();
config_init(); camera_init();
// camera init // camera init
esp_err_t err = esp_camera_init(&config); esp_err_t err = esp_camera_init(&config);
@ -76,7 +76,7 @@ void loop() {
; ;
} }
void config_init() { void camera_init() {
config.ledc_channel = LEDC_CHANNEL_0; config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0; config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM; config.pin_d0 = Y2_GPIO_NUM;