Skip to content

Commit

Permalink
Add - Raspberry RP2040 support
Browse files Browse the repository at this point in the history
  • Loading branch information
xDuinoRails committed Dec 26, 2024
1 parent 3d90b61 commit 2cd2ffb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#define ARDUINO_UNO_NANO
#elif defined(ARDUINO_AVR_MEGA2560)
#define ARDUINO_MEGA
#elif defined(ARDUINO_ARCH_RP2040)
#define RASPBERY_PI_PICO
#else
#error "Platform not recognised"
#endif
Expand Down Expand Up @@ -139,7 +141,7 @@
#endif

// HTTP Server isn't supported on Uno or Nano or Mega
#if defined(ARDUINO_UNO_NANO) | defined(ARDUINO_MEGA)
#if defined(ARDUINO_UNO_NANO) | defined(ARDUINO_MEGA) | defined(RASPBERY_PI_PICO)
#if defined(USE_HTTPSERVER)
#undef USE_HTTPSERVER
#endif
Expand Down
16 changes: 16 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ default_envs =
nanoNew
uno
mega
pico
xiao_rp2040
src_dir = .

[env]
Expand Down Expand Up @@ -78,3 +80,17 @@ board = megaatmega2560
lib_deps =
${env.lib_deps}

[env:pico]
board = pico
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
framework = arduino
lib_deps = ${env.lib_deps}

[env:xiao_rp2040]
board = seeed_xiao_rp2040
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
framework = arduino
lib_deps = ${env.lib_deps}
upload_protocol = picotool

0 comments on commit 2cd2ffb

Please sign in to comment.