From 9ba9a25dc6a8554051283eef72f81699126803a1 Mon Sep 17 00:00:00 2001 From: andrethomas Date: Sun, 20 Oct 2019 20:12:55 +0200 Subject: [PATCH] Add ArduinoSlave to sonoff_template.h --- sonoff/sonoff_template.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index c6ed5b3e2..01fc75129 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -208,6 +208,9 @@ enum UserSelectablePins { GPIO_SM2135_DAT, // SM2135 Dat GPIO_DEEPSLEEP, // Kill switch for deepsleep GPIO_EXS_ENABLE, // EXS MCU Enable + GPIO_ARDUINO_TXD, // Arduino Slave TX + GPIO_ARDUINO_RXD, // Arduino Slave RX + GPIO_ARDUINO_RESET, // Arduino Reset Pin GPIO_SENSOR_END }; // Programmer selectable GPIO functionality @@ -286,6 +289,7 @@ const char kSensorNames[] PROGMEM = D_SENSOR_DDSU666_TX "|" D_SENSOR_DDSU666_RX "|" D_SENSOR_SM2135_CLK "|" D_SENSOR_SM2135_DAT "|" D_SENSOR_DEEPSLEEP "|" D_SENSOR_EXS_ENABLE "|" + D_SENSOR_ARDUINO_TX "|" D_SENSOR_ARDUINO_RX "|" D_SENSOR_ARDUINO_RESET "|" ; const char kSensorNamesFixed[] PROGMEM = @@ -698,6 +702,11 @@ const uint8_t kGpioNiceList[] PROGMEM = { GPIO_PN532_TXD, // PN532 HSU Tx GPIO_PN532_RXD, // PN532 HSU Rx #endif +#ifdef USE_ARDUINO_SLAVE + GPIO_ARDUINO_TXD, // Arduino Slave TX + GPIO_ARDUINO_RXD, // Arduino Slave RX + GPIO_ARDUINO_RESET, // Arduino Reset Pin +#endif #ifdef USE_RDM6300 GPIO_RDM6300_RX, #endif