1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 20:59:50 +04:00

JS Documentation (#3535)

* Initial JS documentation
* Spelling fix

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Nikolay Minaylov
2024-04-09 12:06:37 +03:00
committed by GitHub
parent 88a6860913
commit 58da27fa91
8 changed files with 424 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# js_notification {#js_notification}
# Notification module
```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
```