Skip to content

Commit 8cbd320

Browse files
EngineerWilldpgeorge
authored andcommitted
rp2/boards/WAVESHARE_RP2040_PLUS: Add Waveshare RP2040 Plus 4M and 16M.
Includes 4MB and 16MB variants. Signed-off-by: EngWill <646689853@qq.com> Signed-off-by: Damien George <damien@micropython.org>
1 parent 1968b96 commit 8cbd320

5 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"Dual-core",
8+
"Battery Charging",
9+
"External Flash",
10+
"USB-C"
11+
],
12+
"images": [
13+
"rp2040-plus-1.jpg"
14+
],
15+
"mcu": "rp2040",
16+
"product": "RP2040-Plus",
17+
"thumbnail": "",
18+
"url": "https://www.waveshare.com/rp2040-plus.htm",
19+
"variants": {
20+
"FLASH_16M": "16 MiB Flash"
21+
},
22+
"vendor": "Waveshare"
23+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# cmake file for Waveshare RP2040-Plus
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// url : https://www.waveshare.com/product/rp2040-plus.htm
2+
// wiki : https://www.waveshare.com/wiki/RP2040-Plus
3+
4+
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (1 * 1024 * 1024))
5+
6+
#define MICROPY_HW_USB_VID (0x2E8A)
7+
#define MICROPY_HW_USB_PID (0x1020)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set(PICO_BOARD "waveshare_rp2040_plus_4mb")
2+
3+
list(APPEND MICROPY_DEF_BOARD
4+
MICROPY_HW_BOARD_NAME="Waveshare RP2040-Plus 4MB"
5+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set(PICO_BOARD "waveshare_rp2040_plus_16mb")
2+
3+
list(APPEND MICROPY_DEF_BOARD
4+
MICROPY_HW_BOARD_NAME="Waveshare RP2040-Plus 16MB"
5+
)

0 commit comments

Comments
 (0)