📦 Moves platform ini to root
This commit is contained in:
+2
-1
@@ -5,4 +5,5 @@
|
|||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
*$py.class
|
*$py.class
|
||||||
|
.pio
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
[factory_settings]
|
[factory_settings]
|
||||||
build_flags =
|
build_flags =
|
||||||
-D APP_NAME=\"Spot-Micro\" ; [a-zA-Z0-9-_]
|
-D APP_NAME=\"Spot-Micro\" ; [a-zA-Z0-9-_]
|
||||||
-D APP_VERSION=\"0.0.1\"
|
-D APP_VERSION=\"0.1.0\"
|
||||||
|
|
||||||
; WiFi settings
|
; WiFi settings
|
||||||
-D FACTORY_WIFI_SSID=\"\"
|
-D FACTORY_WIFI_SSID=\"\"
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ Import("env")
|
|||||||
project_dir = env["PROJECT_DIR"]
|
project_dir = env["PROJECT_DIR"]
|
||||||
buildFlags = env.ParseFlags(env["BUILD_FLAGS"])
|
buildFlags = env.ParseFlags(env["BUILD_FLAGS"])
|
||||||
|
|
||||||
interface_dir = project_dir + "/../app"
|
interface_dir = project_dir + "/app"
|
||||||
output_file = project_dir + "/lib/ESP32-sveltekit/WWWData.h"
|
output_file = project_dir + "/esp32/lib/ESP32-sveltekit/WWWData.h"
|
||||||
source_www_dir = interface_dir + "/src"
|
source_www_dir = interface_dir + "/src"
|
||||||
build_dir = interface_dir + "/build"
|
build_dir = interface_dir + "/build"
|
||||||
filesystem_dir = project_dir + "/data/www"
|
filesystem_dir = project_dir + "/data/www"
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ except ImportError:
|
|||||||
ca_bundle_bin_file = 'x509_crt_bundle.bin'
|
ca_bundle_bin_file = 'x509_crt_bundle.bin'
|
||||||
mozilla_cacert_url = 'https://curl.se/ca/cacert.pem'
|
mozilla_cacert_url = 'https://curl.se/ca/cacert.pem'
|
||||||
adafruit_cacert_url = 'https://raw.githubusercontent.com/adafruit/certificates/main/data/roots.pem'
|
adafruit_cacert_url = 'https://raw.githubusercontent.com/adafruit/certificates/main/data/roots.pem'
|
||||||
certs_dir = Path("./ssl_certs")
|
certs_dir = Path("./esp32/ssl_certs")
|
||||||
binary_dir = Path("./src/certs")
|
binary_dir = Path("./esp32/src/certs")
|
||||||
|
|
||||||
quiet = False
|
quiet = False
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
DRAM_ATTR Spot spot;
|
DRAM_ATTR Spot spot;
|
||||||
|
|
||||||
void IRAM_ATTR SpotControlLoopEntry(void*) {
|
void IRAM_ATTR SpotControlLoopEntry(void*) {
|
||||||
|
ESP_LOGI("main", "Setup complete now runing tsk");
|
||||||
TickType_t xLastWakeTime = xTaskGetTickCount();
|
TickType_t xLastWakeTime = xTaskGetTickCount();
|
||||||
const TickType_t xFrequency = 10 / portTICK_PERIOD_MS;
|
const TickType_t xFrequency = 10 / portTICK_PERIOD_MS;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|||||||
@@ -10,13 +10,16 @@
|
|||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
description = Spot Micro Robot
|
description = Spot Micro Robot
|
||||||
data_dir = data
|
data_dir = esp32/data
|
||||||
|
src_dir = esp32/src
|
||||||
|
include_dir = esp32/include
|
||||||
|
lib_dir = esp32/lib
|
||||||
extra_configs =
|
extra_configs =
|
||||||
factory_settings.ini
|
esp32/factory_settings.ini
|
||||||
features.ini
|
esp32/features.ini
|
||||||
build_settings.ini
|
esp32/build_settings.ini
|
||||||
build_cache_dir = .pio/build_cache
|
build_cache_dir = .pio/build_cache
|
||||||
default_envs = esp32-camera ; Change this to your default environment example: [env:{esp32-camera}]
|
default_envs = esp32-camera
|
||||||
|
|
||||||
; ================================================================
|
; ================================================================
|
||||||
; Project environments
|
; Project environments
|
||||||
@@ -112,6 +115,7 @@ lib_deps =
|
|||||||
adafruit/Adafruit BMP085 Unified@^1.1.3
|
adafruit/Adafruit BMP085 Unified@^1.1.3
|
||||||
adafruit/Adafruit ADS1X15@^2.5.0
|
adafruit/Adafruit ADS1X15@^2.5.0
|
||||||
adafruit/Adafruit Unified Sensor@^1.1.14
|
adafruit/Adafruit Unified Sensor@^1.1.14
|
||||||
|
adafruit/Adafruit BNO055@^1.6.4
|
||||||
fastled/FastLED@^3.7.0
|
fastled/FastLED@^3.7.0
|
||||||
SPI
|
SPI
|
||||||
FS
|
FS
|
||||||
@@ -124,10 +128,10 @@ lib_deps =
|
|||||||
WiFiClientSecure
|
WiFiClientSecure
|
||||||
HTTPUpdate
|
HTTPUpdate
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
pre:scripts/pre_build.py
|
pre:esp32/scripts/pre_build.py
|
||||||
pre:scripts/build_app.py
|
pre:esp32/scripts/build_app.py
|
||||||
pre:scripts/generate_cert_bundle.py
|
pre:esp32/scripts/generate_cert_bundle.py
|
||||||
scripts/rename_fw.py
|
esp32/scripts/rename_fw.py
|
||||||
board_build.embed_files = src/certs/x509_crt_bundle.bin
|
board_build.embed_files = esp32/src/certs/x509_crt_bundle.bin
|
||||||
board_ssl_cert_source = adafruit
|
board_ssl_cert_source = adafruit
|
||||||
lib_compat_mode = strict
|
lib_compat_mode = strict
|
||||||
Reference in New Issue
Block a user