1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 04:41:26 +04:00
Files
flipperzero-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

35 lines
550 B
Markdown

# Notification module {#js_notification}
```js
let notify = require("notification");
```
# Methods
## success
"Success" flipper notification message.
### Examples:
```js
notify.success();
```
## error
"Error" flipper notification message.
### Examples:
```js
notify.error();
```
## blink
Blink notification LED.
### 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
```