Merge pull request #24059 from mattdsteele/patch-1

Update pin.read callback
This commit is contained in:
Armando Aguirre
2018-03-08 16:47:32 -08:00
committed by GitHub
+2 -2
View File
@@ -597,12 +597,12 @@ export declare class Pin {
mode: number;
static write(pin: number, value: number): void;
static read(pin: number, cb: (data: number) => void): void;
static read(pin: number, cb: (error: Error, data: number) => void): void;
query(cb: (pin: PinState) => void): void;
high(): void;
low(): void;
write(value: number): void;
read(cb: (value: number) => void): void;
read(cb: (error: Error, value: number) => void): void;
on(event: string, cb: () => void): this;
on(event: "high", cb: () => void): this;
on(event: "low", cb: () => void): this;