set up all the pin options
This commit is contained in:
parent
4f53a3f78e
commit
a8bfa061e1
1 changed files with 31 additions and 6 deletions
|
|
@ -14,13 +14,38 @@ last revision November 2015
|
|||
#include <WiFiNINA.h>
|
||||
|
||||
// Configure the pins used for the ESP32 connection
|
||||
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
|
||||
#if defined(ADAFRUIT_FEATHER_M4_EXPRESS) || defined(ADAFRUIT_FEATHER_M0_EXPRESS) || defined(ARDUINO_AVR_FEATHER32U4) || defined(ARDUINO_NRF52840_FEATHER)
|
||||
// Configure the pins used for the ESP32 connection
|
||||
#define SPIWIFI SPI // The SPI port
|
||||
#define SPIWIFI_SS 13 // Chip select pin
|
||||
#define ESP32_RESETN 12 // Reset pin
|
||||
#define SPIWIFI_ACK 11 // a.k.a BUSY or READY pin
|
||||
#define ESP32_GPIO0 -1
|
||||
#elif defined(ARDUINO_AVR_FEATHER328P)
|
||||
#define SPIWIFI SPI // The SPI port
|
||||
#define SPIWIFI_SS 4 // Chip select pin
|
||||
#define ESP32_RESETN 3 // Reset pin
|
||||
#define SPIWIFI_ACK 2 // a.k.a BUSY or READY pin
|
||||
#define ESP32_GPIO0 -1
|
||||
#elif defined(TEENSYDUINO)
|
||||
#define SPIWIFI SPI // The SPI port
|
||||
#define SPIWIFI_SS 5 // Chip select pin
|
||||
#define ESP32_RESETN 6 // Reset pin
|
||||
#define SPIWIFI_ACK 9 // a.k.a BUSY or READY pin
|
||||
#define ESP32_GPIO0 -1
|
||||
#elif defined(ARDUINO_NRF52832_FEATHER )
|
||||
#define SPIWIFI SPI // The SPI port
|
||||
#define SPIWIFI_SS 16 // Chip select pin
|
||||
#define ESP32_RESETN 15 // Reset pin
|
||||
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
|
||||
#define ESP32_GPIO0 -1
|
||||
#elif !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
|
||||
// Don't change the names of these #define's! they match the variant ones
|
||||
#define SPIWIFI SPI
|
||||
#define SPIWIFI_SS 10 // Chip select pin
|
||||
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
|
||||
#define ESP32_RESETN 5 // Reset pin
|
||||
#define ESP32_GPIO0 -1 // Not connected
|
||||
#define SPIWIFI SPI
|
||||
#define SPIWIFI_SS 10 // Chip select pin
|
||||
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
|
||||
#define ESP32_RESETN 5 // Reset pin
|
||||
#define ESP32_GPIO0 -1 // Not connected
|
||||
#endif
|
||||
|
||||
#include "arduino_secrets.h"
|
||||
|
|
|
|||
Loading…
Reference in a new issue