add driver for W5500

This commit is contained in:
2025-11-25 12:54:13 +01:00
parent 9e771ba4fc
commit 6a8cab04bf
8 changed files with 120 additions and 26 deletions

20
src/config.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef CONFIG_H
#define CONFIG_H
// pin rgb led on Seeed XIAO RP2040
#define PIN_RGB_R 17
#define PIN_RGB_G 16
#define PIN_RGB_B 25
#define PIN_SPI_CLK 2
#define PIN_SPI_MISO 4
#define PIN_SPI_MOSI 3
#define PIN_MAX31856_CS 1
#define PIN_DISPLAY_CS 0
#define PIN_DISPLAY_DC 7
#define PIN_DISPLAY_RST 6
#define PIN_W5500_CS 29
#define W5500_SPI_DRIVER spi0
#endif