UNPKG

interactive-gpio-node

Version:

19 lines (18 loc) 629 B
import { Observable, Subscriber } from 'rxjs'; import { BoutonConfig } from "./model/boutonConfig"; import { BoutonInterface } from "./model/BoutonInterface"; export declare class BoutonWeb implements BoutonInterface { private readonly pins; private readonly port; keys: { [pin: string]: Observable<boolean>; }; pin: { [label: string]: number; }; private readonly app; constructor(pins: BoutonConfig[], port?: number); addButton(config: BoutonConfig): void; actionButton(config: BoutonConfig, observer: Subscriber<boolean>, res: any): void; configureButtons(): void; }