Update Ping.read() callback

This commit is contained in:
Matt Steele
2018-03-03 11:49:02 -06:00
committed by GitHub
parent 1465d62d6e
commit b26647b7ca

View File

@@ -597,7 +597,7 @@ 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;