Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 566 Bytes

File metadata and controls

39 lines (29 loc) · 566 Bytes

Notification module {#js_notification}

let notify = require("notification");

Methods

success()

"Success" flipper notification message.

Example

notify.success();

error()

"Error" flipper notification message.

Example

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", "long"); // Long blink of green LED