@dderevjanik/termux-api
Version:
This library allows you to interact with your Android device from Node.js using termux-api
19 lines (18 loc) • 508 B
TypeScript
export interface InfraredTransmitOptions {
/**
* Frequency IR carrier frequency in Hertz
*/
frequency: number;
/**
* Intervals, such as '20,50,20,30'
*
* **Note:** Only patterns shorter than 2 seconds will be transmitted
*/
pattern: number[];
}
/**
* Transmit an infrared pattern.
*
* **Note:** This API can be used only on devices that have infrared transmitter
*/
export declare function infraredTransmit(options: InfraredTransmitOptions): Promise<void>;