Skip to content

Commit 0de9fa0

Browse files
committed
ports/rp2/boards: Add some definition files for waveshare board.
Signed-off-by: EngWill <646689853@QQ.COM>
1 parent c236132 commit 0de9fa0

File tree

12 files changed

+133
-0
lines changed

12 files changed

+133
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"Dual-core",
8+
"Battery Charging",
9+
"External Flash",
10+
"Display",
11+
"USB-C"
12+
],
13+
"images": [
14+
"rp2040-lcd-0.96-1.jpg"
15+
],
16+
"mcu": "rp2040",
17+
"product": "Waveshare RP2040-LCD-0.96",
18+
"thumbnail": "",
19+
"url": "https://www.waveshare.com/product/rp2040-lcd-0.96.htm",
20+
"vendor": "Waveshare"
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cmake file for Waveshare RP2040-LCD-0.96
2+
set(PICO_BOARD waveshare_rp2040_lcd_0.96)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// url : https://www.waveshare.com/product/rp2040-lcd-0.96.htm
2+
// wiki : https://www.waveshare.com/wiki/RP2040-LCD-0.96
3+
// Board and hardware specific configuration
4+
#define MICROPY_HW_BOARD_NAME "Waveshar RP2040-LCD-0.96"
5+
#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024)
6+
7+
#define MICROPY_HW_USB_VID (0x2E8A)
8+
#define MICROPY_HW_USB_PID (0x1021)
9+
10+
#define MICROPY_HW_SPI1_SCK (10u)
11+
#define MICROPY_HW_SPI1_MOSI (11u)
12+
#define MICROPY_HW_SPI1_MISO (8u)
13+
14+
// LCD backlight control pin GPIO25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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": "Waveshare RP2040=Plus",
17+
"thumbnail": "",
18+
"url": "https://www.waveshare.com/rp2040-plus.htm",
19+
"vendor": "Waveshare"
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cmake file for Waveshar RP2040-Plus
2+
set(PICO_BOARD waveshare_rp2040_plus_16mb)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// url : https://www.waveshare.com/product/rp2040-plus.htm
2+
// wiki : https://www.waveshare.com/wiki/RP2040-Plus
3+
// Board and hardware specific configuration
4+
#define MICROPY_HW_BOARD_NAME "Waveshar RP2040-Plus"
5+
#define MICROPY_HW_FLASH_STORAGE_BYTES (3 * 1024 * 1024)
6+
7+
#define MICROPY_HW_USB_VID (0x2E8A)
8+
#define MICROPY_HW_USB_PID (0x1020)
9+
10+
// user led gpio25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
"vendor": "Waveshare"
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cmake file for Waveshar RP2040-Plus
2+
set(PICO_BOARD waveshare_rp2040_plus_4mb)
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// url : https://www.waveshare.com/product/rp2040-plus.htm
2+
// wiki : https://www.waveshare.com/wiki/RP2040-Plus
3+
// Board and hardware specific configuration
4+
#define MICROPY_HW_BOARD_NAME "Waveshar RP2040-Plus"
5+
#define MICROPY_HW_FLASH_STORAGE_BYTES (3 * 1024 * 1024)
6+
7+
#define MICROPY_HW_USB_VID (0x2E8A)
8+
#define MICROPY_HW_USB_PID (0x1020)
9+
10+
// user led gpio25
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-C"
10+
],
11+
"images": [
12+
"rp2040-zero-1.jpg"
13+
],
14+
"mcu": "rp2040",
15+
"product": "RP2040-Zero",
16+
"thumbnail": "",
17+
"url": "https://www.waveshare.com/product/rp2040-zero.htm",
18+
"vendor": "Waveshare"
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cmake file for Waveshar RP2040-Zero
2+
set(PICO_BOARD waveshare_rp2040_zero)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// url : https://www.waveshare.com/product/rp2040-zero.htm
2+
// wiki : http://www.waveshare.com/wiki/RP2040-Zero
3+
// Board and hardware specific configuration
4+
#define MICROPY_HW_BOARD_NAME "Waveshar RP2040-Zero"
5+
#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024)
6+
7+
#define MICROPY_HW_USB_VID (0x2E8A)
8+
#define MICROPY_HW_USB_PID (0x101F)
9+
10+
// NeoPixel GPIO16

0 commit comments

Comments
 (0)