8000 ports/rp2/boards: Add the WAVESHARE_RP2040_ZERO. · micropython/micropython@f067a5c · GitHub
[go: up one dir, main page]

Skip to content

Commit f067a5c

Browse files
committed
ports/rp2/boards: Add the WAVESHARE_RP2040_ZERO.
Signed-off-by: Dominik Heidler <dheidler@suse.de>
1 parent 8987b39 commit f067a5c

File tree

5 files changed

+71
-0
lines changed

5 files changed

+71
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"Dual-core",
8+
"External Flash",
9+
"RGB LED",
10+
"USB-C"
11+
],
12+
"images": [
13+
],
14+
"mcu": "rp2040",
15+
"product": "RP2040-Zero",
16+
"thumbnail": "",
17+
"url": "https://www.waveshare.com/wiki/RP2040-Zero",
18+
"vendor": "Waveshare"
19+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# cmake file for Waveshare RP2040-Zero
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// https://www.waveshare.com/wiki/RP2040-Zero
2+
3+
#ifndef MICROPY_HW_BOARD_NAME
4+
#define MICROPY_HW_BOARD_NAME "Waveshare RP2040-Zero"
5+
#endif
6+
#define MICROPY_HW_FLASH_STORAGE_BYTES (2 * 1024 * 1024)
7+
8+
#define MICROPY_HW_USB_VID (0x16D0)
9+
#define MICROPY_HW_USB_PID (0x08C7)
10+
11+
// I2C0 (non-default)
12+
#define MICROPY_HW_I2C0_SCL (4)
13+
#define MICROPY_HW_I2C0_SDA (5)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set(PICO_BOARD "waveshare_rp2040_zero")
2+
3+
# Override the MicroPython board name
4+
list(APPEND MICROPY_DEF_BOARD
5+
MICROPY_HW_BOARD_NAME="Waveshare RP2040-Zero"
6+
)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
GP0,GPIO0
2+
GP1,GPIO1
3+
GP2,GPIO2
4+
GP3,GPIO3
5+
GP4,GPIO4
6+
GP5,GPIO5
7+
GP6,GPIO6
8+
GP7,GPIO7
9+
GP8,GPIO8
10+
GP8,GPIO8
11+
GP9,GPIO9
12+
GP10,GPIO10
13+
GP11,GPIO11
14+
GP12,GPIO12
15+
GP13,GPIO13
16+
GP14,GPIO14
17+
GP15,GPIO15
18+
LED,GPIO16
19+
GP17,GPIO17
20+
GP18,GPIO18
21+
GP19,GPIO19
22+
GP20,GPIO20
23+
GP21,GPIO21
24+
GP22,GPIO22
25+
GP23,GPIO23
26+
BOOT,GPIO23
27+
GP24,GPIO24
28+
GP25,GPIO25
29+
GP26,GPIO26
30+
GP27,GPIO27
31+
GP28,GPIO28
32+
GP29,GPIO29

0 commit comments

Comments
 (0)
0