Initial commit
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
CMakeLists.txt.user*
|
||||
build/
|
||||
sdkconfig.old
|
36
.gitmodules
vendored
Normal file
36
.gitmodules
vendored
Normal 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
8
CMakeLists.txt
Normal 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/ArduinoJson
Submodule
1
components/ArduinoJson
Submodule
Submodule components/ArduinoJson added at 475a650703
1
components/FastLED-idf
Submodule
1
components/FastLED-idf
Submodule
Submodule components/FastLED-idf added at 151565bee4
1
components/arduino-esp32
Submodule
1
components/arduino-esp32
Submodule
Submodule components/arduino-esp32 added at 8e447f5cd5
1
components/cpputils
Submodule
1
components/cpputils
Submodule
Submodule components/cpputils added at e4176f9d0c
1
components/date
Submodule
1
components/date
Submodule
Submodule components/date added at b1a75847d5
1
components/espchrono
Submodule
1
components/espchrono
Submodule
Submodule components/espchrono added at 4d2e9305dc
1
components/espcpputils
Submodule
1
components/espcpputils
Submodule
Submodule components/espcpputils added at a6ed293eab
1
components/esphttpdutils
Submodule
1
components/esphttpdutils
Submodule
Submodule components/esphttpdutils added at 4ebd651a70
1
components/espwifistack
Submodule
1
components/espwifistack
Submodule
Submodule components/espwifistack added at 9d134d9f6c
1
components/expected
Submodule
1
components/expected
Submodule
Submodule components/expected added at 30ee4ea505
1
components/fmt
Submodule
1
components/fmt
Submodule
Submodule components/fmt added at d3c349f69d
1
esp-idf
Submodule
1
esp-idf
Submodule
Submodule esp-idf added at 9e9abdf483
10
export.sh
Normal file
10
export.sh
Normal 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
31
main/CMakeLists.txt
Normal 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
1
main/main.cpp
Normal file
@ -0,0 +1 @@
|
||||
extern "C" void app_main() {}
|
8
open_ide.sh
Executable file
8
open_ide.sh
Executable 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
4
partitions.csv
Normal 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,
|
|
Reference in New Issue
Block a user