From 925578d474fe2411c9bbeb72ea2e249593463d34 Mon Sep 17 00:00:00 2001 From: Adam McDaniel Date: Mon, 25 May 2020 22:12:22 -0600 Subject: [PATCH] Default ESP32 config uses pin 17 for INT, which conflicts with TX2. Instead use Pin 4. --- README.md | 2 +- UsbCore.h | 2 +- avrpins.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f7d7c5b8..a475dc21 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Currently the following boards are supported by the library: * GPIO16 is **NOT** usable, as it will be used for some other purposes. For example, reset the SoC itself from sleep mode. * GPIO6 to 11 is also **NOT** usable, as they are used to connect SPI flash chip and it is used for storing the executable binary content. * ESP32 is supported using the [arduino-esp32](https://github.com/espressif/arduino-esp32/) - * GPIO5 : SS, GPIO17 : INT, GPIO18 : SCK, GPIO19 : MISO, GPIO23 : MOSI + * GPIO5 : SS, GPIO4 : INT, GPIO18 : SCK, GPIO19 : MISO, GPIO23 : MOSI The following boards need to be activated manually in [settings.h](settings.h): diff --git a/UsbCore.h b/UsbCore.h index 8574d29c..75883608 100644 --- a/UsbCore.h +++ b/UsbCore.h @@ -49,7 +49,7 @@ typedef MAX3421e MAX3421E; // The Intel Galileo supports much faster rea #elif defined(ESP8266) typedef MAX3421e MAX3421E; // ESP8266 boards #elif defined(ESP32) -typedef MAX3421e MAX3421E; // ESP32 boards +typedef MAX3421e MAX3421E; // ESP32 boards #elif (defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) typedef MAX3421e MAX3421E; // Sanguino #else diff --git a/avrpins.h b/avrpins.h index d5c7c4aa..7fa991af 100644 --- a/avrpins.h +++ b/avrpins.h @@ -1474,8 +1474,8 @@ MAKE_PIN(P22, 22); // SCL MAKE_PIN(P19, 19); // MISO MAKE_PIN(P23, 23); // MOSI MAKE_PIN(P18, 18); // SCK +MAKE_PIN(P4, 4); // INT MAKE_PIN(P5, 5); // SS -MAKE_PIN(P17, 17); // INT #endif