Skip to content

Commit

Permalink
Add support for reset circuit
Browse files Browse the repository at this point in the history
See #6
SS Enable pin is GPIO5
  • Loading branch information
JiriBilek committed Jan 22, 2019
1 parent adab319 commit 1794413
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WiFiSPIESP/WiFiSPIESP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const char* VERSION = "0.2.0";
// Protocol version (format a.b.c)
const char* PROTOCOL_VERSION = "0.2.0";

const uint8_t SS_ENABLE_PIN = 5; // PIN for circuit blocking SS to GPIO15 on reset

/*
* Setup
*/
Expand All @@ -79,6 +81,9 @@ void setup()

WiFi.mode(WIFI_OFF); // The Wifi is started either by the WifiManager or by user invoking "begin"

pinMode(SS_ENABLE_PIN, OUTPUT);
digitalWrite(SS_ENABLE_PIN, HIGH); // enable SS signal to GPIO15 (https://github.com/JiriBilek/WiFiSpiESP/issues/6)

#ifdef WIFIMANAGER_ENABLED
WiFi.persistent(true);
Serial.println(F("WifiManager enabled."));
Expand Down

0 comments on commit 1794413

Please sign in to comment.