Initial commit

This commit is contained in:
2021-08-28 16:56:15 +02:00
commit 84310e97ef
21 changed files with 1589 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
CMakeLists.txt.user*
build/
sdkconfig.old

36
.gitmodules vendored Normal file
View File

@ -0,0 +1,36 @@
[submodule "components/ArduinoJson"]
path = components/ArduinoJson
url = git@github.com:0xFEEDC0DE64/ArduinoJson.git
[submodule "components/cpputils"]
path = components/cpputils
url = git@github.com:0xFEEDC0DE64/cpputils.git
[submodule "esp-idf"]
path = esp-idf
url = git@github.com:0xFEEDC0DE64/esp-idf.git
[submodule "components/date"]
path = components/date
url = git@github.com:0xFEEDC0DE64/date.git
[submodule "components/espchrono"]
path = components/espchrono
url = git@github.com:0xFEEDC0DE64/espchrono.git
[submodule "components/espcpputils"]
path = components/espcpputils
url = git@github.com:0xFEEDC0DE64/espcpputils.git
[submodule "components/esphttpdutils"]
path = components/esphttpdutils
url = git@github.com:0xFEEDC0DE64/esphttpdutils.git
[submodule "components/espwifistack"]
path = components/espwifistack
url = git@github.com:0xFEEDC0DE64/espwifistack.git
[submodule "components/expected"]
path = components/expected
url = git@github.com:0xFEEDC0DE64/expected.git
[submodule "components/FastLED-idf"]
path = components/FastLED-idf
url = git@github.com:0xFEEDC0DE64/FastLED-idf.git
[submodule "components/fmt"]
path = components/fmt
url = git@github.com:0xFEEDC0DE64/fmt.git
[submodule "components/arduino-esp32"]
path = components/arduino-esp32
url = git@github.com:0xFEEDC0DE64/arduino-esp32.git

8
CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.16.3)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(ledcontrol)

1
components/cpputils Submodule

Submodule components/cpputils added at e4176f9d0c

1
components/date Submodule

Submodule components/date added at b1a75847d5

1
components/espchrono Submodule

Submodule components/espchrono added at 4d2e9305dc

1
components/expected Submodule

Submodule components/expected added at 30ee4ea505

1
components/fmt Submodule

Submodule components/fmt added at d3c349f69d

1
esp-idf Submodule

Submodule esp-idf added at 9e9abdf483

10
export.sh Normal file
View File

@ -0,0 +1,10 @@
BOBBY_ROOT="$(dirname "$BASH_SOURCE")"
if [[ ! -f "${BOBBY_ROOT}/esp-idf/export.sh" ]]
then
echo "esp-idf is missing, please check out all needed submodules!"
echo "git submodule update --init --recursive"
return
fi
. ${BOBBY_ROOT}/esp-idf/export.sh

31
main/CMakeLists.txt Normal file
View File

@ -0,0 +1,31 @@
set(headers
)
set(sources
main.cpp
)
set(dependencies
freertos nvs_flash esp_http_server esp_https_ota mdns app_update esp_system esp_websocket_client driver
arduino-esp32 ArduinoJson FastLED-idf cpputils date espchrono espcpputils esphttpdutils espwifistack expected fmt
)
idf_component_register(
SRCS
${headers}
${sources}
INCLUDE_DIRS
.
REQUIRES
${dependencies}
)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all
-fstack-protector-all
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-missing-field-initializers
-Wno-parentheses
)

1
main/main.cpp Normal file
View File

@ -0,0 +1 @@
extern "C" void app_main() {}

8
open_ide.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [[ -z "$IDF_PATH" ]]
then
source export.sh --skip-source-check
fi
qtcreator "EspLedController" 2>&1 >/dev/null &

4
partitions.csv Normal file
View File

@ -0,0 +1,4 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x10000, 0x5000,
otadata, data, ota, 0x15000, 0x2000,
app0, app, ota_0, 0x20000, 0x1F0000,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 0x10000 0x5000
3 otadata data ota 0x15000 0x2000
4 app0 app ota_0 0x20000 0x1F0000

1476
sdkconfig Normal file

File diff suppressed because it is too large Load Diff