8000 rp2/boards: Add board definition for Waveshare RP2040-Zero. · micropython/micropython@c814f92 · GitHub
[go: up one dir, main page]

Skip to content

Commit c814f92

Browse files
committed
rp2/boards: Add board definition for Waveshare RP2040-Zero.
Signed-off-by: Oliver Joos <oliver.joos@hispeed.ch>
1 parent 9feb068 commit c814f92

File tree

5 files changed

+64
-0
lines changed

5 files changed

+64
-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+
"USB"
10+
],
11+
"images": [
12+
"rp2040-zero.jpg"
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This board has 2 MiB of flash memory, of which 1.5 MiB can be used as a USB
2+
drive for your own Python modules.
3+
4+
The side pins are placed at a breadboard-friendly distance. Pin 16 is connected
5+
to a Neopixel RGB LED. Pins 17-25 are connected to small soldering pads at the
6+
bottom.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cmake file for RP2040-Zero board
2+
set(PICO_BOARD "waveshare_rp2040_zero")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Board and hardware specific configuration
2+
#define MICROPY_HW_BOARD_NAME "RP2040-Zero"
3+
#define MICROPY_HW_FLASH_STORAGE_BYTES (1536 * 1024)
4+
5+
// Enable USB Mass Storage with FatFS filesystem.
6+
#define MICROPY_HW_USB_MSC (1)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
GP9,GPIO9
11+
GP10,GPIO10
12+
GP11,GPIO11
13+
GP12,GPIO12
14+
GP13,GPIO13
15+
GP14,GPIO14
16+
GP15,GPIO15
17+
GP16,GPIO16
18+
GP17,GPIO17
19+
GP18,GPIO18
20+
GP19,GPIO19
21+
GP20,GPIO20
22+
GP21,GPIO21
23+
GP22,GPIO22
24+
GP23,GPIO23
25+
GP24,GPIO24
26+
GP25,GPIO25
27+
GP26,GPIO26
28+
GP27,GPIO27
29+
GP28,GPIO28
30+
GP29,GPIO29
31+
NEOPIXEL,GPIO16

0 commit comments

Comments
 (0)
0