mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 14:22:27 +03:00
58da27fa91
* Initial JS documentation * Spelling fix Co-authored-by: あく <alleteam@gmail.com>
565 B
565 B
js_notification
Notification module
let notify = require("notification");
Methods
success
"Success" flipper notification message
Examples:
notify.success();
error
"Error" flipper notification message
Examples:
notify.error();
blink
Blink notification LED
Parameters
- Blink color (blue/red/green/yellow/cyan/magenta)
- Blink type (short/long)
Examples:
notify.blink("red", "short"); // Short blink of red LED
notify.blink("green", "short"); // Long blink of green LED