mirror of
https://github.com/chirimen-oh/node-web-gpio.git
synced 2025-01-31 06:18:02 +00:00
yarn build
This commit is contained in:
parent
d05c3c011b
commit
d8cf9e03e9
1 changed files with 6 additions and 6 deletions
12
index.d.ts
vendored
12
index.d.ts
vendored
|
@ -16,7 +16,7 @@ export declare class GPIOAccess extends EventEmitter {
|
||||||
private readonly _ports;
|
private readonly _ports;
|
||||||
onchange: GPIOChangeEventHandler | undefined;
|
onchange: GPIOChangeEventHandler | undefined;
|
||||||
constructor(ports?: GPIOPortMap);
|
constructor(ports?: GPIOPortMap);
|
||||||
readonly ports: GPIOPortMap;
|
get ports(): GPIOPortMap;
|
||||||
/**
|
/**
|
||||||
* Unexport all exported GPIO ports.
|
* Unexport all exported GPIO ports.
|
||||||
*/
|
*/
|
||||||
|
@ -36,11 +36,11 @@ export declare class GPIOPort extends EventEmitter {
|
||||||
private _timeout;
|
private _timeout;
|
||||||
onchange: GPIOChangeEventHandler | undefined;
|
onchange: GPIOChangeEventHandler | undefined;
|
||||||
constructor(portNumber: PortNumber);
|
constructor(portNumber: PortNumber);
|
||||||
readonly portNumber: PortNumber;
|
get portNumber(): PortNumber;
|
||||||
readonly portName: PortName;
|
get portName(): PortName;
|
||||||
readonly pinName: PinName;
|
get pinName(): PinName;
|
||||||
readonly direction: DirectionMode;
|
get direction(): DirectionMode;
|
||||||
readonly exported: boolean;
|
get exported(): boolean;
|
||||||
export(direction: DirectionMode): Promise<void>;
|
export(direction: DirectionMode): Promise<void>;
|
||||||
unexport(): Promise<void>;
|
unexport(): Promise<void>;
|
||||||
read(): Promise<GPIOValue>;
|
read(): Promise<GPIOValue>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue