Difference between revisions of "Modular ESP Firmware - Baseline - Work Environment"
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
framework = arduino | framework = arduino | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | === Notes === | ||
+ | You can put as many <code>[env:]</code> sections in as you like & select one at compile-time based on which particular device you're programming. |
Revision as of 12:35, 2 January 2021
platformio.ini
Most ESP8266 Devices
1 [env:esp8266]
2 platform = espressif8266
3 ; For now, let's stick with the 8266 family MCUs
4
5 board = esp07
6 ; Pretty much ANY esp8266 board is an esp07 as far as Platformio is concerned
7
8 framework = arduino
9
10 monitor_speed = 115200
11 ; I like my serial comms fast. (Without this line you get the default of 9600)
12
13 build_flags = -D DEBUG
14 ; This is just plain handy. You can use it to turn debugging output on/off...
esp-01
1 [env:esp01]
2 platform = espressif8266
3 board = esp01
4 framework = arduino
esp-M3
1 [env:espM3]
2 platform = espressif8266
3 board = esp8285
4 framework = arduino
Notes
You can put as many [env:]
sections in as you like & select one at compile-time based on which particular device you're programming.