Unify examples, add notes

This commit is contained in:
unknown
2022-06-17 00:54:31 +02:00
parent 8d7a063c99
commit 4d9eca0c71
10 changed files with 32 additions and 170 deletions

View File

@ -19,3 +19,11 @@ $ pio run --target upload
# Clean build files
$ pio run --target clean
```
## Notes
For Raspberry Pi Pico devices, two Arduino cores exist:
* https://github.com/arduino/ArduinoCore-mbed
* https://github.com/earlephilhower/arduino-pico
This examples showcases how to use both of these cores in the `platformio.ini`.

View File

@ -16,3 +16,26 @@ board = pico
[env:nanorp2040connect]
board = nanorp2040connect
[env:pico_earle]
board = pico
; "pico" board can use both mbed and earlephilhower core, must select here
board_build.core = earlephilhower
[env:nanorp2040connect_earle]
board = nanorp2040connect
; "nanorp2040connect" board can use both mbed and earlephilhower core, must select here
board_build.core = earlephilhower
; earlephilhower-only boards
[env:rpipico]
board = rpipico
[env:adafruit_feather]
board = adafruit_feather
[env:seeed_xiao_rp2040]
board = seeed_xiao_rp2040
[env:sparkfun_thingplusrp2040]
board = sparkfun_thingplusrp2040