diff --git a/README.md b/README.md index be617be..2c789a1 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,12 @@ Mouse Click: --Clicks the LEFT, RIGHT, or MIDDLE mouse button --Case Sensitive +Blink LED: +--"BlinkLED:X" +--X=# of times to blink the LED 750ms ON 500ms OFF +--"BlinkLED:3" Blinks the LED 3 times +--Useful for knowing what stage of a payload you are on(add to the end of payload). + Special Characters/Known Issues: Currently the only character that has been found not to work is the "less than" symbol, "<". This bug does NOT apply to Live Payload Mode. diff --git a/payloads/blink.txt b/payloads/blink.txt new file mode 100644 index 0000000..501af94 --- /dev/null +++ b/payloads/blink.txt @@ -0,0 +1,2 @@ +REM:Blink the LED 3 times, 750ms ON 500ms OFF +BlinkLED:3 \ No newline at end of file diff --git a/source/ESP_Code/ESP_Code.ino b/source/ESP_Code/ESP_Code.ino index c3c57c4..53d653f 100644 --- a/source/ESP_Code/ESP_Code.ino +++ b/source/ESP_Code/ESP_Code.ino @@ -139,6 +139,17 @@ void runpayload() { defaultdelay = newdefaultdelay.toInt(); // Serial.println(String()+"default delay set to:"+defaultdelay); } + 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); + delay(750); + digitalWrite(2, HIGH); + delay(500); + } + } else if(cmd == "CustomDelay") { cmdinput = String(strtok_r(NULL,":",&i)); String customdelay = cmdinput; @@ -903,6 +914,17 @@ void setup(void) defaultdelay = newdefaultdelay.toInt(); // Serial.println(String()+"default delay set to:"+defaultdelay); } + 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); + delay(750); + digitalWrite(2, HIGH); + delay(500); + } + } else if(cmd == "CustomDelay") { cmdinput = String(strtok_r(NULL,":",&i)); String customdelay = cmdinput; @@ -1053,6 +1075,17 @@ void setup(void) defaultdelay = newdefaultdelay.toInt(); // Serial.println(String()+"default delay set to:"+defaultdelay); } + 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); + delay(750); + digitalWrite(2, HIGH); + delay(500); + } + } else if(cmd == "CustomDelay") { cmdinput = String(strtok_r(NULL,":",&i)); String customdelay = cmdinput; diff --git a/source/ESP_Code/ESP_Code.ino.generic.bin b/source/ESP_Code/ESP_Code.ino.generic.bin index 1ae25b4..1d1dc85 100644 Binary files a/source/ESP_Code/ESP_Code.ino.generic.bin and b/source/ESP_Code/ESP_Code.ino.generic.bin differ diff --git a/source/ESP_Code/HelpText.h b/source/ESP_Code/HelpText.h index 099f197..75505f2 100644 --- a/source/ESP_Code/HelpText.h +++ b/source/ESP_Code/HelpText.h @@ -195,6 +195,12 @@ Mouse Click:
--Clicks the LEFT, RIGHT, or MIDDLE mouse button
--Case Sensitive

+Blink LED:
+--"BlinkLED:X"
+--X=# of times to blink the LED 750ms ON 500ms OFF
+--"BlinkLED:3" Blinks the LED 3 times
+--Useful for knowing what stage of a payload you are on(add to the end of payload).
+
Special Characters/Known Issues:
Currently the only character that has been found not to work is the "less than" symbol, "<".
This bug does NOT apply to Live Payload Mode.
diff --git a/source/ESP_Code/version.h b/source/ESP_Code/version.h index 23af3f5..d716227 100644 --- a/source/ESP_Code/version.h +++ b/source/ESP_Code/version.h @@ -1,2 +1,2 @@ -String version = "2.5.5"; +String version = "2.6.0"; String latestardversion = "2.2";