Hello Rui and Sara,
I’m starting to build the example ‘PAN TILT videostreaming’. Where can I find these libraries:
- #include “esp_timer.h”
- #include “img_converters.h”
- #include “fb_gfx.h”
- #include “soc/soc.h” // disable brownout problems
- #include “soc/rtc_cntl_reg.h” // disable brownout problems
I can’t find them on your github. Also no reference in the ebook where to find them.
Thanks for your help.
By the way, your site and examples are awesome!
Regards, Peter.
Hi.
Those libraries are included by default.
Make sure you have an ESP32-CAM board selected in Tools > Board.
Then, the code should compile just fine.
If not, tell me the error that you get.
Regards,
Sara
Hi,
Despite of the warnings (no errors) it works. Sorry, at first I only compiled it, now I have done an upload to the board and the camera works. The warnings seem to be no problem.
Regards, Peter
Hi,
See the warnings below. Thanks for your help.
By the way, I commented out the dummy servo entries and used library 0.13 which works flawless (like some suggested in the chat):
//Servo servoN1;
//Servo servoN2;
Servo servo1;
Servo servo2;
//servoN1.attach(2, 1000, 2000);
//servoN2.attach(13, 1000, 2000);
servo1.attach(SERVO_1, 1000, 2000);
servo2.attach(SERVO_2, 1000, 2000);
These are the warnings:
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino: In function ‘void setup()’:
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:427:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_sda’ is deprecated: please use pin_sccb_sda instead [-Wdeprecated-declarations]
config.pin_sscb_sda = SIOD_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:117:87: note: declared here
int pin_sscb_sda __attribute__((deprecated(“please use pin_sccb_sda instead”))); /*!< GPIO pin for camera SDA line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:427:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_sda’ is deprecated: please use pin_sccb_sda instead [-Wdeprecated-declarations]
config.pin_sscb_sda = SIOD_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:117:87: note: declared here
int pin_sscb_sda __attribute__((deprecated(“please use pin_sccb_sda instead”))); /*!< GPIO pin for camera SDA line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:427:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_sda’ is deprecated: please use pin_sccb_sda instead [-Wdeprecated-declarations]
config.pin_sscb_sda = SIOD_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:117:87: note: declared here
int pin_sscb_sda __attribute__((deprecated(“please use pin_sccb_sda instead”))); /*!< GPIO pin for camera SDA line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:428:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_scl’ is deprecated: please use pin_sccb_scl instead [-Wdeprecated-declarations]
config.pin_sscb_scl = SIOC_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:121:87: note: declared here
int pin_sscb_scl __attribute__((deprecated(“please use pin_sccb_scl instead”))); /*!< GPIO pin for camera SCL line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:428:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_scl’ is deprecated: please use pin_sccb_scl instead [-Wdeprecated-declarations]
config.pin_sscb_scl = SIOC_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:121:87: note: declared here
int pin_sscb_scl __attribute__((deprecated(“please use pin_sccb_scl instead”))); /*!< GPIO pin for camera SCL line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:428:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_scl’ is deprecated: please use pin_sccb_scl instead [-Wdeprecated-declarations]
config.pin_sscb_scl = SIOC_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:121:87: note: declared here
int pin_sscb_scl __attribute__((deprecated(“please use pin_sccb_scl instead”))); /*!< GPIO pin for camera SCL line (legacy name) */
Ok.
Thanks for letting me know.
Basically, it’s just telling that now there are new names for the same declarations. However, the previous declarations still work, so the code will still work.
Regards,
Sara