Skip to content

Commit

Permalink
moved general drivers into library source directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Apr 9, 2024
1 parent 05faff8 commit c798e81
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ deploy.sh
releases
releases/binaries/
releases/installer/
examples/espcamlib
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions examples/freenove-tank/freenove-tank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

#include <Arduino.h>
#include <ESP32WifiCLI.hpp>
#include "CamFreenove.h"
#include "ESPNowCam.h"
#include "comm.pb.h"
#include <ESPNowCam.h>
#include <common/comm.pb.h>
#include <common/ConfigApp.hpp>
#include <drivers/CamFreenove.h>
#include <ESP32Servo.h>
#include "ConfigApp.hpp"
#include <Utils.h>

#define BUILTINLED 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#include <Arduino.h>
#include <ESP32WifiCLI.hpp>
#include <Wire.h>
#include <M5Unified.h>
#include "ESPNowCam.h"
#include "comm.pb.h"
#include <common/comm.pb.h>

ESPNowCam radio;

Expand Down
7 changes: 3 additions & 4 deletions examples/xiao-espnow-sender/xiao-espnow-sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
**************************************************/

#include <Arduino.h>
#include <ESP32WifiCLI.hpp>
#include "ESPNowCam.h"
#include "CamXiao.h"
#include "Utils.h"
#include <ESPNowCam.h>
#include <drivers/CamXiao.h>
#include <Utils.h>

CamXiao Camera;
ESPNowCam radio;
Expand Down
34 changes: 13 additions & 21 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[platformio]
src_dir = ./examples/
lib_dir = ./
lib_dir = ./examples/espcamlib

[env]
platform = espressif32
Expand All @@ -19,6 +19,9 @@ build_flags =
; -Werror
-D CORE_DEBUG_LEVEL=0
-D BOARD_HAS_PSRAM=1
lib_deps =
nanopb/[email protected]
extra_scripts = pre:prebuild.py

[esp32common]
extends = env
Expand All @@ -29,25 +32,22 @@ board_build.partitions = ./config/partitions.csv
[env:xiao-espnow-sender]
extends = esp32common
board_build.arduino.memory_type = dio_opi ;
build_src_filter = -<*> +<xiao-espnow-sender/>
lib_deps =
nanopb/[email protected]
https://github.com/hpsaturn/SerialTerminal.git
hpsaturn/ESP32 Wifi CLI @^0.2.1
build_src_filter = -<*> -<*common*> +<xiao-espnow-sender/>

[env:freenove-tank]
extends = esp32common
board_build.arduino.memory_type = dio_opi ;
build_src_filter = -<*> +<freenove-tank/>
lib_deps =
nanopb/[email protected]
build_src_filter = -<*> +<common/> +<freenove-tank/>
lib_deps =
${esp32common.lib_deps}
madhephaestus/[email protected]
https://github.com/hpsaturn/SerialTerminal.git
hpsaturn/ESP32 Wifi CLI @^0.2.1

[m5cores3_common]
extends = esp32common
lib_deps =
${esp32common.lib_deps}
https://github.com/m5stack/M5CoreS3.git
m5stack/M5Unified@^0.1.6
build_flags =
Expand All @@ -59,32 +59,24 @@ build_flags =
[env:m5cores3-espnow-sender]
extends = m5cores3_common
build_src_filter = -<*> +<m5cores3-espnow-sender/>
lib_deps =
${m5cores3_common.lib_deps}
nanopb/[email protected]

[env:m5cores3-espnow-receiver]
extends = m5cores3_common
build_src_filter = -<*> +<m5cores3-espnow-receiver/>
lib_deps =
${m5cores3_common.lib_deps}
nanopb/[email protected]

[env:m5core2-espnow-receiver]
extends = esp32common
board = esp32dev
build_src_filter = -<*> +<m5core2-espnow-receiver/>
lib_deps =
${esp32common.lib_deps}
m5stack/M5Unified@^0.1.6
nanopb/[email protected]

[env:m5stickCplus-joystick-tank]
extends = esp32common
board = esp32dev
upload_speed = 1500001
build_src_filter = -<*> +<m5stickCplus-joystick-tank/>
build_src_filter = -<*> +<common/> +<m5stickCplus-joystick-tank/>
lib_deps =
m5stack/M5Unified@^0.1.6
nanopb/[email protected]
https://github.com/hpsaturn/SerialTerminal.git
hpsaturn/ESP32 Wifi CLI @^0.2.1
${esp32common.lib_deps}
m5stack/M5Unified@^0.1.6
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c798e81

Please sign in to comment.