From 238c26908f116ee21ea5f5b320aa46e703eee3ec Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Tue, 25 Oct 2016 01:38:24 -0500 Subject: [PATCH] Use pin 15 and 16 for SS and INT respectivly The Wifio is not supported for now --- README.md | 1 + UsbCore.h | 2 ++ settings.h | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index d77b3bed..01fb8a50 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ 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 The following boards need to be activated manually in [settings.h](settings.h): diff --git a/UsbCore.h b/UsbCore.h index fdec87b0..43703f63 100644 --- a/UsbCore.h +++ b/UsbCore.h @@ -39,6 +39,8 @@ typedef MAX3421e MAX3421E; // Arduino Mega ADK 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 #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 diff --git a/settings.h b/settings.h index c8856a24..068bceba 100644 --- a/settings.h +++ b/settings.h @@ -189,4 +189,8 @@ extern SPI_HandleTypeDef SPI_Handle; // Needed to be declared in your main.cpp #define pgm_read_word(addr) (*reinterpret_cast(addr)) #endif +#ifdef ARDUINO_ESP8266_WIFIO +#error "This board is currently not supported" +#endif + #endif /* SETTINGS_H */