forked from tjfenwick/DIY-Sim-Racing-Active-Pedal
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathplatformio.ini
51 lines (43 loc) · 1.62 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; 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]
default_envs = esp32s3usbotg
#default_envs = esp32
[env]
framework = arduino
platform = espressif32
#platform = espressif32 @ 6.5.0
#platform = espressif32 @ 6.6.0
#platform = https://github.com/platformio/platform-espressif32.git
# see https://github.com/platformio/platform-espressif32/issues/1225
#platform_packages =
# platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-rc1
# platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
[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 =
'-DCORE_DEBUG_LEVEL=1'
#'-DUSE_TINYUSB=1'
'-DARDUINO_USB_MODE=0'
'-DARDUINO_USB_CDC_ON_BOOT=1'
#'-DUSB_VID=0xF011'
#'-DUSB_PID=0xF011'
#'-DUSB_PRODUCT="DiyFfbPedal"'
#'-DUSB_PRODUCT="OpenSource"'
# https://community.platformio.org/t/platformio-is-it-possible-to-flash-esp32-s3-when-its-in-tinyusb-mode/34015/7
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
board_upload.require_upload_port = yes
lib_deps =
schnoog/Joystick_ESP32S2 @ ^0.9.4