UNPKG

@frezik/rpi-doorbot-ts

Version:

Modules to interface doorbot-ts to the Raspberry Pi

23 lines (22 loc) 579 B
/** * @fileOverview An activator that activates a GPIO pin on a Raspberry Pi */ export declare class GPIOActivator { private pin; private time; /** * @constructor * * @param pin: {number} The pin to output when activated * @param time: {number} The time (in ms) to activate the pin */ constructor(pin: number, time: number); init(): Promise<any>; /** * Returns a Promise that, when resolved, activates the pin for the * set period of time. * * @returns {Promise<any>} */ activate(): Promise<any>; }