8000 rp2/boards: Add Wiznet W5100S-EVB-Pico board. · micropython/micropython@d2edbbd · GitHub
[go: up one dir, main page]

Skip to content

Commit d2edbbd

Browse files
committed
rp2/boards: Add Wiznet W5100S-EVB-Pico board.
1 parent 256d310 commit d2edbbd

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"Breadboard Friendly",
8+
"Castellated Pads",
9+
"Ethernet",
10+
"Micro USB"
11+
],
12+
"images": [
13+
"W5100S-EVB-Pico.jpg"
14+
],
15+
"mcu": "RP2040",
16+
"product": "Wiznet W5100S-EVB-Pico",
17+
"thumbnail": "",
18+
"url": "https://www.wiznet.io/product-item/w5100s-evb-pico/",
19+
"vendor": "Wiznet"
20+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# cmake file for Wiznet W5100S-EVB-Pico.
2+
set(MICROPY_PY_WIZNET5K w5100s)
3+
4+
set(PICO_BOARD pico)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//Board config for Wiznet W5100S-EVB-Pico.
2+
3+
// Board and hardware specific configuration
4+
#define MICROPY_HW_BOARD_NAME "W5100S-EVB-Pico"
5+
#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024)
6+
7+
// Enable networking and sockets.
8+
#define MICROPY_PY_NETWORK (1)
9+
#define MICROPY_PY_USOCKET (1)
10+
11+
// Wiznet HW config.
12+
#define MICROPY_HW_WIZNET_SPI_ID (0)
13+
#define MICROPY_HW_WIZNET_SPI_BAUDRATE (2 * 1000 * 1000)
14+
#define MICROPY_HW_WIZNET_SPI_SCK (18)
15+
#define MICROPY_HW_WIZNET_SPI_MOSI (19)
16+
#define MICROPY_HW_WIZNET_SPI_MISO (16)
17+
#define MICROPY_HW_WIZNET_PIN_CS (17)
18+
#define MICROPY_HW_WIZNET_PIN_RST (20)
19+
20+
// #define MICROPY_PY_WIZNET5K 5100s
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Wiznet W5100S-EVB-Pico
2+
3+
## Network Example
4+
5+
To use ethernet, plug into network with DHCP running:
6+
7+
```
8+
>>> import network
9+
>>> nic = network.WIZNET5K()
10+
>>> nic.ifconfig()
11+
('192.168.0.18', '255.255.255.0', '192.168.0.1', '8.8.8.8')
12+
```

0 commit comments

Comments
 (0)
0