2025-03-18 20:08:23 +04:00
|
|
|
# Notification module {#js_notification}
|
2024-04-09 12:06:37 +03:00
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
let notify = require("notification");
|
|
|
|
|
```
|
|
|
|
|
# Methods
|
|
|
|
|
|
|
|
|
|
## success
|
2025-03-18 20:08:23 +04:00
|
|
|
"Success" flipper notification message.
|
2024-04-09 12:06:37 +03:00
|
|
|
|
|
|
|
|
### Examples:
|
|
|
|
|
```js
|
|
|
|
|
notify.success();
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## error
|
2025-03-18 20:08:23 +04:00
|
|
|
"Error" flipper notification message.
|
2024-04-09 12:06:37 +03:00
|
|
|
|
|
|
|
|
### Examples:
|
|
|
|
|
```js
|
|
|
|
|
notify.error();
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## blink
|
2025-03-18 20:08:23 +04:00
|
|
|
Blink notification LED.
|
2024-04-09 12:06:37 +03:00
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
- Blink color (blue/red/green/yellow/cyan/magenta)
|
|
|
|
|
- Blink type (short/long)
|
|
|
|
|
|
|
|
|
|
### Examples:
|
|
|
|
|
```js
|
|
|
|
|
notify.blink("red", "short"); // Short blink of red LED
|
|
|
|
|
notify.blink("green", "short"); // Long blink of green LED
|
|
|
|
|
```
|