-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathplatformio.ini
133 lines (119 loc) · 4.73 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[common]
lib_deps =
adafruit/Adafruit GFX Library@^1.11.5
adafruit/Adafruit LED Backpack Library@^1.1
adafruit/Adafruit NeoPixel@^1.10.5
adafruit/Adafruit PCD8544 Nokia 5110 LCD library@^2.0.1
adafruit/Adafruit SSD1306@2.5.9
adafruit/Adafruit WS2801 Library@1.1.1
#includes fixes for esp
https://github.com/9khil/LedControl#913cbcebb8ceea6783bb271d385d18b99c2d5e79
blackhack/LCD_I2C @ ^2.3.0
mathertel/LiquidCrystal_PCF8574@^2.2.0
smougenot/TM1637@0.0.0-alpha+sha.9486982048
https://github.com/paulo-raca/ArduinoBufferedStreams.git#5e3a1a3d140955384a07878c64808e77fa2a7521
noah1510/LedController @ ^1.7.0
locoduino/RingBuffer@^1.0.4
https://github.com/maxint-rd/TM16xx#95a1bdd959bf6fce75d0059f129386155f49f984
makuna/NeoPixelBus @ ^2.8
https://github.com/me-no-dev/ESPAsyncWebServer#7f3753454b1f176c4b6d6bcd1587a135d95ca63c
https://github.com/khoih-prog/ESPAsync_WiFiManager#e83343f4c2df14b504d284982152539692ac2078
#####
# These libraries don't work either because they require arduino/atmel processors,
# define timings based on them, or use interfaces not implemented by the ESPs
# such as joystick ({most} ESPs are incapable of implementing it with hardware)
# if you know how to fix the incompatibilities, you may do so by adding code in
# lib/EspSimHub/EspSimHub.h
######
#adafruit/Adafruit Motor Shield library@^1.0.1
#https://github.com/lincomatic/Colorduino
#https://github.com/MHeironimus/ArduinoJoystickLibrary@^2.0.4
#https://github.com/Antonded/NewTone
#bhagman/Tone@^1.0.0
#rjbatista/TM1638@^2.2.0
#arduino-libraries/Robot Motor@^1.0.3
#arduino-libraries/Robot Control@^1.0.4
#############################################
# ESP8266
#
# Comment out this whole block below if
# you're not compiling for this platform
#
#############################################
[env:esp8266]
platform = espressif8266
# this should be set to your flavor of esp8266, for instance d1_mini
# BOARD_LIST: https://docs.platformio.org/en/latest/boards/index.html#espressif-8266
board = nodemcuv2
framework = arduino
lib_deps =
${common.lib_deps}
fastled/FastLED@3.4 #newer versions don't seem to work with esp8266 in my tests
# add any libraries that are specific for the es8266
build_flags =
-w -DESP8266=1
build_src_filter =
# include all files
+<**/*.*>
# exclude the ESP-NOW bridge
-<main-espnow-bridge.cpp>
monitor_speed = 115200
;upload_port = COM4
;build_type = debug # set this to debug only for debugging, as it's slower.
monitor_filters = esp8266_exception_decoder
build_unflags = -fno-rtti # comment this out if you need more ram, but you'll need to make some type assumptions
#############################################
# ESP32
#
# Comment out this whole block below if
# you're not compiling for this platform
#
#############################################
[env:esp32]
platform = espressif32@^6.9
; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
# this should be set to your flavor of esp32, for instance wemos_d1_mini32, esp32doit-devkit-v1, seeed_xiao_esp32c3
# BOARD LIST: https://docs.platformio.org/en/latest/boards/index.html#espressif-32
board = esp32doit-devkit-v1
framework = arduino
lib_deps =
${common.lib_deps}
fastled/FastLED@^3.6
# add any libraries that are specific for the esp32
# this sets your board to 240MHz, not all boards support this, but if yours does, uncomment.
; board_build.f_cpu = 240000000L
build_src_filter =
# include all files
+<**/*.*>
# exclude the ESP-NOW bridge
-<main-espnow-bridge.cpp>
build_flags =
-w
-D ESP32=1
-D ARDUINO_USB_MODE=0 # Uncomment this if your device supports USB OTG (which means it can be used as an HID device)
monitor_speed = 115200
build_type = debug # set this to debug only for debugging, as it's slower.
monitor_filters = esp32_exception_decoder
;upload_port = COM4
#############################################
# ESP-NOW Bridge device
#
# ESP32 by default
#############################################
[env:espnow-bridge]
;platform = espressif32@^6.9
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
# this should be set to your flavor of esp32, for instance wemos_d1_mini32, esp32doit-devkit-v1, seeed_xiao_esp32c3
# BOARD LIST: https://docs.platformio.org/en/latest/boards/index.html#espressif-32
board = esp32-s3-devkitc-1
framework = arduino
lib_deps =
https://github.com/paulo-raca/ArduinoBufferedStreams.git#5e3a1a3d140955384a07878c64808e77fa2a7521
monitor_speed = 115200
build_src_filter =
# include all files
+<**/*.*>
# exclude the main sketch
-<main.cpp>
build_flags =
-D ARDUINO_USB_CDC_ON_BOOT=0