JS: Add BadUSB Alt+Numpad example

This commit is contained in:
Willy-JL
2024-03-19 04:45:54 +00:00
parent 1bf0d3ab9a
commit f48848ca4d

View File

@@ -26,6 +26,12 @@ if (badusb.isConnected()) {
badusb.println("Flipper Name: " + flipper.getName());
badusb.println("Battery level: " + to_string(flipper.getBatteryCharge()) + "%");
// Alt+Numpad method works only on Windows!!!
badusb.altPrintln("This was printed with Alt+Numpad method!");
// There's also badusb.print() and badusb.altPrint()
// which don't add the return at the end
notify.success();
} else {
print("USB not connected");