Port of arduino-st4 (Kevin Ferrare) to ESP32/PlatformIO with: - FreeRTOS mutex protection at every layer (Pin, Axis, Pulse, Controller) - Hardware timer pulse guiding with ISR-safe deferred stop pattern - Backward-compatible serial protocol (57600 baud, #-terminated) - Extended commands: PULSE, POS?, SYNC, STATUS?, VERSION? - Optional WiFi/WebSocket control (gated by ST4_WIFI_ENABLED) - Dead-reckoning position tracker using esp_timer microsecond precision All 4 examples build clean against esp32dev target.
31 lines
758 B
INI
31 lines
758 B
INI
; ST4-ESP32 PlatformIO library
|
|
; For building examples: use 'make' targets (uses pio ci)
|
|
; For development/upload: pio run -e <env> (uses symlink lib_deps)
|
|
|
|
[platformio]
|
|
default_envs = serial_compatible
|
|
|
|
[env]
|
|
platform = espressif32
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
lib_deps = symlink://.
|
|
|
|
[env:basic_gpio]
|
|
build_src_filter = +<../examples/basic_gpio/>
|
|
|
|
[env:serial_compatible]
|
|
build_src_filter = +<../examples/serial_compatible/>
|
|
|
|
[env:pulse_guide]
|
|
build_src_filter = +<../examples/pulse_guide/>
|
|
|
|
[env:wifi_control]
|
|
build_flags = -DST4_WIFI_ENABLED
|
|
lib_deps =
|
|
symlink://.
|
|
bblanchon/ArduinoJson@^7.0.0
|
|
mathieucarbou/ESPAsyncWebServer@^3.6.0
|
|
build_src_filter = +<../examples/wifi_control/>
|