Skip to content

Commit

Permalink
Release 2.6.1
Browse files Browse the repository at this point in the history
Clean up BlinkLED for wider compatibility
  • Loading branch information
exploitagency committed Oct 19, 2017
1 parent baf0c75 commit d4a4d0b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions source/ESP_Code/ESP_Code.ino
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
DoubleResetDetector drd(DRD_TIMEOUT, DRD_ADDRESS);
*/

#define LED_BUILTIN 2

// Port for web server
ESP8266WebServer server(80);
ESP8266WebServer httpServer(1337);
Expand Down Expand Up @@ -142,11 +144,10 @@ void runpayload() {
else if(cmd == "BlinkLED") {
cmdinput = String(strtok_r(NULL,":",&i));
int blinkcount = cmdinput.toInt();
pinMode(2, OUTPUT);
for (int i=1; i <= blinkcount; i++){
digitalWrite(2, LOW);
digitalWrite(LED_BUILTIN, LOW);
delay(750);
digitalWrite(2, HIGH);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
}
}
Expand Down Expand Up @@ -652,7 +653,8 @@ void setup(void)
// Serial.println("");
// Serial.println("ESPloit - Wifi Controlled HID Keyboard Emulator");
// Serial.println("");
pinMode(LED_BUILTIN, OUTPUT);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
Serial.begin(38400);
SPIFFS.begin();

Expand Down Expand Up @@ -917,11 +919,10 @@ void setup(void)
else if(cmd == "BlinkLED") {
cmdinput = String(strtok_r(NULL,":",&i));
int blinkcount = cmdinput.toInt();
pinMode(2, OUTPUT);
for (int i=1; i <= blinkcount; i++){
digitalWrite(2, LOW);
digitalWrite(LED_BUILTIN, LOW);
delay(750);
digitalWrite(2, HIGH);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
}
}
Expand Down Expand Up @@ -1078,11 +1079,10 @@ void setup(void)
else if(cmd == "BlinkLED") {
cmdinput = String(strtok_r(NULL,":",&i));
int blinkcount = cmdinput.toInt();
pinMode(2, OUTPUT);
for (int i=1; i <= blinkcount; i++){
digitalWrite(2, LOW);
digitalWrite(LED_BUILTIN, LOW);
delay(750);
digitalWrite(2, HIGH);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
}
}
Expand Down
Binary file modified source/ESP_Code/ESP_Code.ino.generic.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion source/ESP_Code/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
String version = "2.6.0";
String version = "2.6.1";
String latestardversion = "2.2";

0 comments on commit d4a4d0b

Please sign in to comment.