Skip to content

Commit

Permalink
Now use GPIO2 to blink the ESP LED
Browse files Browse the repository at this point in the history
  • Loading branch information
N0vaPixel committed Mar 6, 2017
1 parent 2b1527e commit 6d13eba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions esp8266_deauther/Attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ void Attack::refreshLed(){
}
if(numberRunning>=1 && settings.useLed){
if(debug) Serial.println("Attack LED : ON");
digitalWrite(BUILTIN_LED, LOW);
digitalWrite(2, LOW);
}
else if(numberRunning==0 || !settings.useLed){
if(debug) Serial.println("Attack LED : OFF");
digitalWrite(BUILTIN_LED, HIGH);
digitalWrite(2, HIGH);
}
}

9 changes: 5 additions & 4 deletions esp8266_deauther/esp8266_deauther.ino
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ void setup() {
Serial.begin(115200);
delay(2000);

pinMode(2, OUTPUT);
delay(50);
digitalWrite(2, HIGH);

EEPROM.begin(4096);

pinMode(BUILTIN_LED, OUTPUT);
digitalWrite(BUILTIN_LED, HIGH);


settings.load();
if (debug) settings.info();
nameList.load();
Expand Down

0 comments on commit 6d13eba

Please sign in to comment.