Browse Source

first commit

master
zwsd 3 years ago
commit
0149f99bf2
  1. 3
      .gitignore
  2. 3
      .gitmodules
  3. 9
      .vscode/c_cpp_properties.json
  4. 8
      CMakeLists.txt
  5. 0
      README.md
  6. 3
      dependencies.lock
  7. 9
      envsetupsetup.ps1
  8. 1
      lscom.ps1
  9. 1
      main/CMakeLists.txt
  10. 16
      main/app_main.cpp
  11. 1730
      sdkconfig
  12. 6
      sdkconfig.defaults
  13. 14
      sdkconfig.defaults.esp32s3
  14. 1730
      sdkconfig.old

3
.gitignore

@ -0,0 +1,3 @@
build/*
esp-idf-v4.4
esp-who.components/*

3
.gitmodules

@ -0,0 +1,3 @@
# [submodule "dep/zesp32-submodule-zsimpleble-server"]
# path = dep/zesp32-submodule-zsimpleble-server
# url = zwsd@192.168.1.3:manufacturer_espressif/zesp32-submodule-zsimpleble-server.git

9
.vscode/c_cpp_properties.json

@ -0,0 +1,9 @@
{
"configurations": [
{
"name": "Win32",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}

8
CMakeLists.txt

@ -0,0 +1,8 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS ./esp-who.components)
add_compile_options(-fdiagnostics-color=always)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(motion_detection_lcd)

0
README.md

3
dependencies.lock

@ -0,0 +1,3 @@
manifest_hash: f5c3d5ecef22297c3c9c6dfb58193ab8bb17326aca837f20d72e0225c83ffb66
target: esp32s3
version: 1.0.0

9
envsetupsetup.ps1

@ -0,0 +1,9 @@
#导出环境变量
C:\Espressif/Initialize-Idf.ps1 -IdfId esp-idf-8de2bd0d9cffd2eca3d3f8442939a034
#创建软连接到C盘中的SDK,方便代码搜索,查阅,拷贝
if(-NOT(Test-Path ".\esp-idf-v4.4"))
{
$command ="cmd /c mklink /J esp-idf-v4.4 C:\Espressif\frameworks\esp-idf-v4.4"
invoke-expression "$command"
}

1
lscom.ps1

@ -0,0 +1 @@
[System.IO.Ports.SerialPort]::getportnames()

1
main/CMakeLists.txt

@ -0,0 +1 @@
idf_component_register(SRCS "app_main.cpp")

16
main/app_main.cpp

@ -0,0 +1,16 @@
#include "who_camera.h"
#include "who_motion_detection.hpp"
#include "who_lcd.h"
static QueueHandle_t xQueueAIFrame = NULL;
static QueueHandle_t xQueueLCDFrame = NULL;
extern "C" void app_main()
{
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
register_lcd(xQueueLCDFrame, NULL, true);
}

1730
sdkconfig
File diff suppressed because it is too large
View File

6
sdkconfig.defaults

@ -0,0 +1,6 @@
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_SPIRAM_SPEED_80M=y

14
sdkconfig.defaults.esp32s3

@ -0,0 +1,14 @@
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
CONFIG_ESP32S3_DATA_CACHE_64KB=y
CONFIG_ESP32S3_DATA_CACHE_8WAYS=y
CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y
CONFIG_CAMERA_MODULE_ESP_S3_EYE=y
CONFIG_LCD_DRIVER_SCREEN_CONTROLLER_ST7789=y
CONFIG_ESPTOOLPY_NO_STUB=y
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
CONFIG_SPIRAM_MODE_OCT=y

1730
sdkconfig.old
File diff suppressed because it is too large
View File

Loading…
Cancel
Save