From a99b5c6f09bb71b6a0c5849d76b6de2e9912980b Mon Sep 17 00:00:00 2001 From: Sebastian Bergner <54766531+sebastianbergner@users.noreply.github.com> Date: Fri, 9 Sep 2022 07:50:52 +0200 Subject: [PATCH 1/2] Add I2C and SPI pin definitions to wt32-eth01 pins Added missing pins based on testing using a RTC (I2C) and SD card reader (SPI). --- variants/wt32-eth01/pins_arduino.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/variants/wt32-eth01/pins_arduino.h b/variants/wt32-eth01/pins_arduino.h index 432705fa441..a45bc244f91 100644 --- a/variants/wt32-eth01/pins_arduino.h +++ b/variants/wt32-eth01/pins_arduino.h @@ -25,6 +25,14 @@ #define ETH_PHY_TYPE ETH_PHY_LAN8720 #define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN +#define SDA 33 +#define SCL 32 + +#define SS 2 +#define MOSI 14 +#define MISO 15 +#define SCK 12 + // general purpose IO pins static const uint8_t IO0 = 0; static const uint8_t IO1 = 1; // TXD0 / TX0 pin From 9eb56f763b0c39220c5f188fc8c56b07765eb1d6 Mon Sep 17 00:00:00 2001 From: Sebastian Bergner <54766531+sebastianbergner@users.noreply.github.com> Date: Tue, 22 Nov 2022 11:27:17 +0100 Subject: [PATCH 2/2] Remove define macros --- variants/wt32-eth01/pins_arduino.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/variants/wt32-eth01/pins_arduino.h b/variants/wt32-eth01/pins_arduino.h index f6ad4cd4d9a..6cb2a6a5d7a 100644 --- a/variants/wt32-eth01/pins_arduino.h +++ b/variants/wt32-eth01/pins_arduino.h @@ -25,14 +25,6 @@ #define ETH_PHY_TYPE ETH_PHY_LAN8720 #define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN -#define SDA 33 -#define SCL 32 - -#define SS 2 -#define MOSI 14 -#define MISO 15 -#define SCK 12 - // general purpose IO pins static const uint8_t IO0 = 0; static const uint8_t IO1 = 1; // TXD0 / TX0 pin @@ -62,12 +54,12 @@ static const uint8_t RX = 3; //SPI VSPI default pins static const uint8_t SS = -1; -static const uint8_t MOSI = 15; -static const uint8_t MISO = 12; -static const uint8_t SCK = 14; +static const uint8_t MOSI = 14; +static const uint8_t MISO = 15; +static const uint8_t SCK = 12; //I2C default pins -static const uint8_t SDA = 2; -static const uint8_t SCL = 4; +static const uint8_t SDA = 33; +static const uint8_t SCL = 32; #endif /* Pins_Arduino_h */