mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-13 05:06:30 +04:00
* toString() was moved, not duplicated * These had gotten lost * This is now implemented * Add missing version doctags
33 lines
873 B
TypeScript
33 lines
873 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
|
|
* @version Added in JS SDK 0.1
|
|
*/
|
|
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;
|