1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00
Files
unleashed-firmware/documentation/js/js_notification.md
Ruslan Nadyrshin 02dedd60f3 Add guides on Getting Started with JS (#4150)
- Get started section added to the JS docs
- Small fixes in the JS modules docs
2025-03-19 02:08:23 +10:00

550 B

Notification module

let notify = require("notification");

Methods

success

"Success" flipper notification message.

Examples:

notify.success();

error

"Error" flipper notification message.

Examples:

notify.error();

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