赞
踩
使用这个板子测试,官方的板子。BOARD_ESP32CAM_AITHINKER
1、下载esp32组件:
csdn链接:https://download.csdn.net/download/weixin_37663721/85981142
github:https://github.com/espressif/esp-who
2、把下面的文件拷贝到新建的工程里面,template-app是新建的工程
3、更改template-app/CMakeLists.txt,添加如下内容
set(EXTRA_COMPONENT_DIRS components)
4、重命名template-app/main/main.c为main.cpp
5、更改template-app/main/CMakeLists.txt,把main.c更改为main.cpp
6、复制以下代码到template-app/main/main.cpp
#include <esp_log.h> #include <esp_system.h> #include <nvs_flash.h> #include <sys/param.h> #include <string.h> #include "app_wifi.h" #include "app_httpd.hpp" #include "app_mdns.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/semphr.h" // support IDF 5.x #ifndef portTICK_RATE_MS #define portTICK_RATE_MS portTICK_PERIOD_MS #endif #include "esp_camera.h" #define BOARD_ESP32CAM_AITHINKER 1 // WROVER-KIT PIN Map #ifdef
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。