-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from i-am-shodan
Adds support for ESP32-S2 devices
- Loading branch information
Showing
25 changed files
with
310 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REM This file is only used by platforms without an SD card | ||
REM Replace this file with your own content |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,22 +66,18 @@ build_flags = | |
-DARDUINO_USB_CDC_ON_BOOT=1 | ||
-D DISABLE_ALL_LIBRARY_WARNINGS | ||
-D USER_SETUP_LOADED | ||
-D GENERIC_ESP32 | ||
-D HAS_SD | ||
-Wnarrowing | ||
-Wno-deprecated | ||
-Wwrite-strings | ||
-Wreturn-type | ||
-Wl,-z,muldefs | ||
-D USE_SD_MMC_INTERFACE | ||
-D DISABLE_STATUS_LED | ||
-D ENABLE_NONSERIAL_COMMAND_EXECUTION | ||
-D CFG_TUD_NCM | ||
-D CFG_TUD_ENABLED | ||
-D MIN_HEAP_SIZE=8192 | ||
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1 | ||
-D ELEGANTOTA_USE_ASYNC_WEBSERVER=1 | ||
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=128 | ||
-D WS_MAX_QUEUED_MESSAGES=64 | ||
-D CONFIG_ASYNC_TCP_MAX_ACK_TIME=3000 | ||
;-D DUCKY_CUSTOM_LOG | ||
|
@@ -92,7 +88,6 @@ lib_deps_core = | |
ESPAsyncWebServer=https://github.com/mathieucarbou/ESPAsyncWebServer | ||
https://github.com/i-am-shodan/DuckScriptInterpreter | ||
bblanchon/ArduinoJson@^7.0.3 | ||
h2zero/NimBLE-Arduino@^1.4.2 | ||
ivanseidel/[email protected]+sha.dac3874d28 | ||
yiannisbourkelis/Uptime Library@^1.0.0 | ||
ayushsharma82/[email protected] | ||
|
@@ -112,10 +107,67 @@ board_build.partitions = default_8MB.csv | |
monitor_speed = 115200 | ||
build_flags = | ||
${common.build_flags} | ||
-DARDUINO_ARCH_ESP32S3 | ||
-D ARDUINO_ARCH_ESP32S3 | ||
-D HAS_SD ; ESP32 Maurader | ||
-D USE_SD_MMC_INTERFACE ; ESP32 Maurader | ||
-D GENERIC_ESP32 ; ESP32 Maurader | ||
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=128 | ||
; Button config | ||
-D BTN_PIN=0 | ||
; LED config | ||
-D NUM_LEDS=1 | ||
-D LED_DI_PIN=40 | ||
-D LED_CI_PIN=39 | ||
; SD port config | ||
-D SD_MMC_D0_PIN=14 | ||
-D SD_MMC_D1_PIN=17 | ||
-D SD_MMC_D2_PIN=21 | ||
-D SD_MMC_D3_PIN=18 | ||
-D SD_MMC_CLK_PIN=12 | ||
-D SD_MMC_CMD_PIN=16 | ||
; Display (ST7735s) hardware configuration: | ||
-D DISPLAY_RST=1 | ||
-D DISPLAY_DC=2 | ||
-D DISPLAY_MOSI=3 | ||
-D DISPLAY_CS=4 | ||
-D DISPLAY_SCLK=5 | ||
-D DISPLAY_LEDA=38 | ||
-D DISPLAY_MISO=-1 | ||
-D DISPLAY_BUSY=-1 | ||
-D DISPLAY_WIDTH=160 | ||
-D DISPLAY_HEIGHT=80 | ||
-D TFT_WIDTH=80 | ||
-D TFT_HEIGHT=160 | ||
|
||
lib_deps = | ||
${common.lib_deps_core} | ||
h2zero/NimBLE-Arduino@^1.4.2 ; ESP32 Maurader | ||
mathertel/OneButton | ||
bitbank2/PNGdec@^1.0.1 | ||
lovyan03/LovyanGFX@^1.1.16 | ||
https://github.com/pololu/apa102-arduino | ||
|
||
[env:Generic-ESP32-S2] | ||
platform = ${common.platform} | ||
platform_packages = ${common.platform_packages} | ||
framework = ${common.framework} | ||
extra_scripts = ${common.extra_scripts} | ||
monitor_filters = ${common.monitor_filters} | ||
build_src_filter = ${common.build_src_filter} | ||
build_unflags = ${common.build_unflags} | ||
|
||
board = esp32-s2-kaluga-1 ; close enough | ||
board_build.partitions = min_spiffs.csv | ||
monitor_speed = 115200 | ||
build_flags = | ||
${common.build_flags} | ||
-D ARDUINO_ARCH_ESP32S3 | ||
-D NO_TFT | ||
-D NO_LED | ||
-D NO_BUTTON | ||
-D NO_SD | ||
-D NO_WEB ; These device have such low free heap that the webserver just doesn't work | ||
-D USE_SPIFFS_INTERFACE ; ESP32 Maurader | ||
-D MEM_LOWER_LIM=20000 ; ESP32 Maurader | ||
lib_deps = | ||
${common.lib_deps_core} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifdef NO_WEB | ||
#include "WebServer.h" | ||
|
||
namespace Comms | ||
{ | ||
WebSite Web; | ||
} | ||
|
||
WebSite::WebSite() | ||
{ | ||
} | ||
|
||
void WebSite::begin(Preferences &prefs) | ||
{ | ||
} | ||
|
||
void WebSite::loop(Preferences &prefs) | ||
{ | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifdef NO_BUTTON | ||
#include "HardwareButton.h" | ||
|
||
namespace Devices | ||
{ | ||
HardwareButton Button; | ||
} | ||
|
||
HardwareButton::HardwareButton() | ||
{ | ||
} | ||
|
||
void HardwareButton::loop(Preferences& prefs) | ||
{ | ||
} | ||
|
||
void HardwareButton::begin(Preferences &prefs) | ||
{ | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifdef NO_LED | ||
#include "HardwareLED.h" | ||
|
||
namespace Devices | ||
{ | ||
HardwareLED LED; | ||
} | ||
|
||
void HardwareLED::changeLEDState(bool on, uint8_t hue, uint8_t saturation, uint8_t lum, uint8_t brightness) | ||
{ | ||
} | ||
|
||
HardwareLED::HardwareLED() | ||
{ | ||
} | ||
|
||
void HardwareLED::loop(Preferences& prefs) | ||
{ | ||
} | ||
|
||
void HardwareLED::begin(Preferences &prefs) | ||
{ | ||
} | ||
#endif |
Oops, something went wrong.