Skip to content

Commit f29bb48

Browse files
authored
Default envs (#120)
* Make use of PlatformIO default_envs option Makes changing environments/platforms a breeze, no more (un-)commenting: Simply use the "Switch PlatformIO Project Environment" control in VSCode. * Updated README.md to mention ESP32
1 parent 3bb4084 commit f29bb48

2 files changed

Lines changed: 23 additions & 20 deletions

File tree

Microcontroller/Moppy2-Arduino/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
Device implementation for Moppy2 for microcontrollers that support the Arduino **framework**. Currently, the following boards are officially supported:
33
- **Arduino [Uno\*]** (via the Arduino IDE or PlatformIO)
44
- **ESP8266** (via PlatformIO)
5+
- **ESP32** (via PlatformIO)
56

67
\* Most "Arduino" boards are extremely similar and should work fine, though if you're using PlatformIO you may need to modify `platformio.ini` to match your board-type.

Microcontroller/Moppy2-Arduino/platformio.ini

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,33 @@
88
; Please visit documentation for the other options and examples
99
; https://docs.platformio.org/page/projectconf.html
1010

11-
; [env:esp12e]
12-
; platform = espressif8266
13-
; board = esp12e
14-
; lib_deps=
15-
; FastLED ; For experimental lighting effects
16-
; https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
17-
; upload_speed = 115200
18-
; monitor_speed = 115200
11+
[platformio]
12+
default_envs = uno
1913

20-
; [env:esp32]
21-
; platform = espressif32
22-
; board = esp32dev
23-
; lib_deps=
24-
; FastLED ; For experimental lighting effects
25-
; https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
26-
; upload_speed = 115200
27-
; monitor_speed = 115200
14+
[env]
15+
framework = arduino
2816

2917
[env:uno]
3018
platform = atmelavr
3119
board = uno
3220
lib_deps=
33-
TimerOne
34-
21+
TimerOne
3522
monitor_speed = 57600
3623

37-
[env]
38-
framework = arduino
24+
[env:esp12e]
25+
platform = espressif8266
26+
board = esp12e
27+
lib_deps=
28+
FastLED ; For experimental lighting effects
29+
https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
30+
upload_speed = 115200
31+
monitor_speed = 115200
32+
33+
[env:esp32]
34+
platform = espressif32
35+
board = esp32dev
36+
lib_deps=
37+
FastLED ; For experimental lighting effects
38+
https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
39+
upload_speed = 115200
40+
monitor_speed = 115200

0 commit comments

Comments
 (0)