From dc2a224d2e6e683be4fa6c11743fd14c0ee07052 Mon Sep 17 00:00:00 2001 From: huming2207 Date: Wed, 2 Nov 2016 23:13:09 +1100 Subject: [PATCH] Change INT pin to GPIO0 temporarily as it cannot attach interrupt. --- README.md | 5 ++++- UsbCore.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01fb8a50..a8b415bc 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,10 @@ Currently the following boards are supported by the library: * STM32F4 * Currently the [NUCLEO-F446RE](http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF262063) is supported featuring the STM32F446. Take a look at the following example code: . * ESP8266 is supported using the [ESP8266 Arduino core](https://github.com/esp8266/Arduino) - * Note it uses pin 15 and 16 for SS and INT respectively + * Note it uses pin 15 and 0 for SS and INT respectively + * Also please be aware that: + * 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. The following boards need to be activated manually in [settings.h](settings.h): diff --git a/UsbCore.h b/UsbCore.h index 43703f63..f9fc6641 100644 --- a/UsbCore.h +++ b/UsbCore.h @@ -40,7 +40,7 @@ typedef MAX3421e MAX3421E; // Balanduino #elif defined(__ARDUINO_X86__) && PLATFORM_ID == 0x06 typedef MAX3421e MAX3421E; // The Intel Galileo supports much faster read and write speed at pin 2 and 3 #elif defined(ESP8266) -typedef MAX3421e MAX3421E; // ESP8266 boards +typedef MAX3421e MAX3421E; // ESP8266 boards #else typedef MAX3421e MAX3421E; // Official Arduinos (UNO, Duemilanove, Mega, 2560, Leonardo, Due etc.), Intel Edison, Intel Galileo 2 or Teensy 2.0 and 3.0 #endif