arduino-pico/libraries/KeyboardBLE/examples/BLEKeyboardPassword/BLEKeyboardPassword.ino
2023-03-02 15:55:18 -08:00

21 lines
570 B
C++

/* Released into the public domain */
/* Earle F. Philhower, III <earlephilhower@yahoo.com> */
#include <KeyboardBLE.h>
void setup() {
Serial.begin(115200);
KeyboardBLE.begin();
delay(5000);
Serial.printf("Arduino USB Password Typer\n");
Serial.printf("Press BOOTSEL to enter your super-secure(not!) password\n\n");
}
void loop() {
if (BOOTSEL) {
Serial.println("Typing password for you...shhhh....");
KeyboardBLE.print("ThisPasswordIsWeakLikeABaby");
KeyboardBLE.setBattery(random(0, 101)); // Set between 0...100%
while (BOOTSEL);
}
}