Skip to content

Commit

Permalink
Update platformio.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
tcfshcrw committed Jul 28, 2024
1 parent f91eccb commit fc78a90
Showing 1 changed file with 35 additions and 54 deletions.
89 changes: 35 additions & 54 deletions ESP32/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,84 +9,65 @@
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = esp32s3usbotg
#default_envs = esp32
#default_envs = esp32-speedcrafter
default_envs = esp32

[env]
framework = arduino
#platform = espressif32 @ 6.5.0
#platform = espressif32 @ 6.6.0
platform = espressif32
#platform = https://github.com/platformio/platform-espressif32.git
# see https://github.com/platformio/platform-espressif32/issues/1225
platform_packages =
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.17
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
# platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3
# platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1

monitor_speed = 921600

[common]
lib_deps_external =
rfetick/Kalman @ ^1.1.0
lemmingdev/ESP32-BLE-Gamepad @ ^0.5.5
gin66/FastAccelStepper @ ^0.30.12
dlloydev/QuickPID @ ^3.1.9
tomstewart89/BasicLinearAlgebra @ ^3.2
#schnoog/Joystick_ESP32S2 @ ^0.9.4
https://github.com/ChrGri/ADS1255-ADS1256.git
lib_deps_external =
rfetick/Kalman @ ^1.1.0
lemmingdev/ESP32-BLE-Gamepad @ ^0.5.5
gin66/FastAccelStepper @ ^0.30.12
dlloydev/QuickPID @ ^3.1.9
tomstewart89/BasicLinearAlgebra @ ^3.2
https://github.com/ChrGri/ADS1255-ADS1256.git

[env:esp32s3usbotg]
board = esp32-s3-devkitc-1
board_build.f_cpu = 240000000L
# https://community.platformio.org/t/platformio-is-it-possible-to-flash-esp32-s3-when-its-in-tinyusb-mode/34015/4
#build_unflags =
# '-D PCB_VERSION'
build_flags =
-DARDUINO_RUNNING_CORE=1
#-DARDUINO_EVENT_RUNNING_CORE=1
-DCORE_DEBUG_LEVEL=1
build_flags =
-DARDUINO_RUNNING_CORE=1
-DCORE_DEBUG_LEVEL=1
-DARDUINO_USB_MODE=0
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MSC_ON_BOOT=0
-DARDUINO_USB_MSC_ON_BOOT=0
-DARDUINO_USB_DFU_ON_BOOT=0
-DPCB_VERSION=6
-DUSB_VID=0xF011
-DUSB_PID=0xF011
'-DUSB_PRODUCT="DiyFfbPedal"'
'-DUSB_MANUFACTURER="OpenSource"'

# https://community.platformio.org/t/platformio-is-it-possible-to-flash-esp32-s3-when-its-in-tinyusb-mode/34015/7
-DPCB_VERSION=6
-DUSB_VID=0xF011
-DUSB_PID=0xF011
'-DUSB_PRODUCT="DiyFfbPedal"'
'-DUSB_MANUFACTURER="OpenSource"'
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
board_upload.require_upload_port = yes

lib_deps =
${common.lib_deps_external}
schnoog/Joystick_ESP32S2 @ ^0.9.4
adafruit/Adafruit MCP4725 @ ^2.0.2



lib_deps =
${common.lib_deps_external}
schnoog/Joystick_ESP32S2 @ ^0.9.4
adafruit/Adafruit MCP4725 @ ^2.0.2
regenbogencode/ESPNowW@^1.0.2

[env:esp32]
board = esp32dev
lib_deps =
${common.lib_deps_external}
lib_deps =
${common.lib_deps_external}
regenbogencode/ESPNowW@^1.0.2
build_unflags =
'-D PCB_VERSION=6'
build_flags =
'-D PCB_VERSION=3'
'-D PCB_VERSION=6'
build_flags =
'-D PCB_VERSION=3'

[env:esp32-speedcrafter]
board = esp-wrover-kit
lib_deps =
${common.lib_deps_external}
lib_deps =
${common.lib_deps_external}
regenbogencode/ESPNowW@^1.0.2
build_unflags =
'-D PCB_VERSION=6'
build_flags =
'-D PCB_VERSION=5'


'-D PCB_VERSION=6'
build_flags =
'-D PCB_VERSION=5'

0 comments on commit fc78a90

Please sign in to comment.