Skip to content

Commit

Permalink
Default envs (#120)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ZwoCa authored Feb 16, 2021
1 parent 3bb4084 commit f29bb48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
1 change: 1 addition & 0 deletions Microcontroller/Moppy2-Arduino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
Device implementation for Moppy2 for microcontrollers that support the Arduino **framework**. Currently, the following boards are officially supported:
- **Arduino [Uno\*]** (via the Arduino IDE or PlatformIO)
- **ESP8266** (via PlatformIO)
- **ESP32** (via PlatformIO)

\* 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.
42 changes: 22 additions & 20 deletions Microcontroller/Moppy2-Arduino/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,33 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

; [env:esp12e]
; platform = espressif8266
; board = esp12e
; lib_deps=
; FastLED ; For experimental lighting effects
; https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
; upload_speed = 115200
; monitor_speed = 115200
[platformio]
default_envs = uno

; [env:esp32]
; platform = espressif32
; board = esp32dev
; lib_deps=
; FastLED ; For experimental lighting effects
; https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
; upload_speed = 115200
; monitor_speed = 115200
[env]
framework = arduino

[env:uno]
platform = atmelavr
board = uno
lib_deps=
TimerOne

TimerOne
monitor_speed = 57600

[env]
framework = arduino
[env:esp12e]
platform = espressif8266
board = esp12e
lib_deps=
FastLED ; For experimental lighting effects
https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
upload_speed = 115200
monitor_speed = 115200

[env:esp32]
platform = espressif32
board = esp32dev
lib_deps=
FastLED ; For experimental lighting effects
https://github.com/sstaub/Ticker ; For experimental lighting effects (because lights are too slow for Timer)
upload_speed = 115200
monitor_speed = 115200

0 comments on commit f29bb48

Please sign in to comment.