mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
* feat: js sdk * refactor: move js back where it belongs * docs: generate docs using typedoc * feat: sdk versioning scheme * ci: silence pvs warning * docs: bring back old incomplete js docs * style: readAnalog naming * fix: rename script compatibility screens Co-authored-by: あく <alleteam@gmail.com>
32 lines
841 B
TypeScript
32 lines
841 B
TypeScript
/**
|
|
* Module for using the color LED and vibration motor
|
|
* @version Added in JS SDK 0.1
|
|
* @module
|
|
*/
|
|
|
|
/**
|
|
* @brief Signals success to the user via the color LED, speaker and vibration
|
|
* motor
|
|
* @version Added in JS SDK 0.1
|
|
*/
|
|
export declare function success(): void;
|
|
|
|
/**
|
|
* @brief Signals failure to the user via the color LED, speaker and vibration
|
|
* motor
|
|
*/
|
|
export declare function error(): void;
|
|
|
|
/**
|
|
* @version Added in JS SDK 0.1
|
|
*/
|
|
export type Color = "red" | "green" | "blue" | "yellow" | "cyan" | "magenta";
|
|
|
|
/**
|
|
* @brief Displays a basic color on the color LED
|
|
* @param color The color to display, see `Color`
|
|
* @param duration The duration, either `"short"` (10ms) or `"long"` (100ms)
|
|
* @version Added in JS SDK 0.1
|
|
*/
|
|
export declare function blink(color: Color, duration: "short" | "long"): void;
|