📦 Moves platform ini to root

This commit is contained in:
Rune Harlyk
2025-03-23 16:10:58 +01:00
committed by Rune Harlyk
parent c02938b567
commit e4cb035ad9
6 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
[factory_settings]
build_flags =
-D APP_NAME=\"Spot-Micro\" ; [a-zA-Z0-9-_]
-D APP_VERSION=\"0.0.1\"
-D APP_VERSION=\"0.1.0\"
; WiFi settings
-D FACTORY_WIFI_SSID=\"\"
-133
View File
@@ -1,133 +0,0 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
description = Spot Micro Robot
data_dir = data
extra_configs =
factory_settings.ini
features.ini
build_settings.ini
build_cache_dir = .pio/build_cache
default_envs = esp32-camera ; Change this to your default environment example: [env:{esp32-camera}]
; ================================================================
; Project environments
; More Board information: https://registry.platformio.org/platforms/platformio/espressif32/boards
[env:esp32-camera]
board = esp32cam
board_build.partitions = huge_app.csv
monitor_rts = 0
monitor_dtr = 0
build_flags=
${env.build_flags}
-D USE_CAMERA=1
-D CAMERA_MODEL_AI_THINKER=1
-D SDA_PIN=14
-D SCL_PIN=15
[env:esp32-wroom-camera]
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
board_build.partitions = default_16MB.csv
board_upload.flash_size = 16MB
upload_speed = 1000000
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D USE_CAMERA=1
-D CAMERA_MODEL_ESP32S3_EYE=1
-D WS2812_PIN=48
-D USS_LEFT_PIN=1
-D USS_RIGHT_PIN=14
-D SDA_PIN=47
-D SCL_PIN=21
[env:seeed-xiao-esp32s3]
platform = espressif32
board = seeed_xiao_esp32s3
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
build_flags =
${env.build_flags}
-D USE_CAMERA=1
-D CAMERA_MODEL_XIAO_ESP32S3=1
;-D USS_LEFT_PIN=1
;-D USS_RIGHT_PIN=14
-D SDA_PIN=5
-D SCL_PIN=6
[env:esp32dev]
board = esp32dev
board_build.partitions = min_spiffs.csv
build_flags =
${env.build_flags}
; ================================================================
; General environment section
[env]
platform = espressif32 @ 6.8.1
framework = arduino
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
default
colorize
build_flags =
${factory_settings.build_flags}
${features.build_flags}
${build_settings.build_flags}
-D CORE_DEBUG_LEVEL=4
-D register=
-std=gnu++2a
build_unflags = -std=gnu++11
build_src_flags =
-Wformat=2
-Wformat-truncation
-Wstack-usage=4096
test_ignore = test_embedded
board_build.filesystem = littlefs
lib_deps =
hoeken/PsychicHttp@^1.2.1
ArduinoJson@>=7.0.0
teckel12/NewPing@^1.9.7
jrowberg/I2Cdevlib-MPU6050@^1.0.0
adafruit/Adafruit SSD1306@^2.5.7
adafruit/Adafruit GFX Library@^1.11.5
adafruit/Adafruit BusIO@^1.9.3
adafruit/Adafruit PWM Servo Driver Library@^2.4.1
adafruit/Adafruit ST7735 and ST7789 Library@^1.10.4
adafruit/Adafruit HMC5883 Unified@^1.2.3
adafruit/Adafruit BMP085 Unified@^1.1.3
adafruit/Adafruit ADS1X15@^2.5.0
adafruit/Adafruit Unified Sensor@^1.1.14
fastled/FastLED@^3.7.0
SPI
FS
WiFi
LittleFS
ESPmDNS
HTTPClient
DNSServer
Update
WiFiClientSecure
HTTPUpdate
extra_scripts =
pre:scripts/pre_build.py
pre:scripts/build_app.py
pre:scripts/generate_cert_bundle.py
scripts/rename_fw.py
board_build.embed_files = src/certs/x509_crt_bundle.bin
board_ssl_cert_source = adafruit
lib_compat_mode = strict
+2 -2
View File
@@ -26,8 +26,8 @@ Import("env")
project_dir = env["PROJECT_DIR"]
buildFlags = env.ParseFlags(env["BUILD_FLAGS"])
interface_dir = project_dir + "/../app"
output_file = project_dir + "/lib/ESP32-sveltekit/WWWData.h"
interface_dir = project_dir + "/app"
output_file = project_dir + "/esp32/lib/ESP32-sveltekit/WWWData.h"
source_www_dir = interface_dir + "/src"
build_dir = interface_dir + "/build"
filesystem_dir = project_dir + "/data/www"
+2 -2
View File
@@ -36,8 +36,8 @@ except ImportError:
ca_bundle_bin_file = 'x509_crt_bundle.bin'
mozilla_cacert_url = 'https://curl.se/ca/cacert.pem'
adafruit_cacert_url = 'https://raw.githubusercontent.com/adafruit/certificates/main/data/roots.pem'
certs_dir = Path("./ssl_certs")
binary_dir = Path("./src/certs")
certs_dir = Path("./esp32/ssl_certs")
binary_dir = Path("./esp32/src/certs")
quiet = False
+1
View File
@@ -3,6 +3,7 @@
DRAM_ATTR Spot spot;
void IRAM_ATTR SpotControlLoopEntry(void*) {
ESP_LOGI("main", "Setup complete now runing tsk");
TickType_t xLastWakeTime = xTaskGetTickCount();
const TickType_t xFrequency = 10 / portTICK_PERIOD_MS;
for (;;) {