mirror of
https://github.com/chirimen-oh/node-web-gpio.git
synced 2025-01-30 22:08:04 +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;
|
||||
onchange: GPIOChangeEventHandler | undefined;
|
||||
constructor(ports?: GPIOPortMap);
|
||||
readonly ports: GPIOPortMap;
|
||||
get ports(): GPIOPortMap;
|
||||
/**
|
||||
* Unexport all exported GPIO ports.
|
||||
*/
|
||||
|
@ -36,11 +36,11 @@ export declare class GPIOPort extends EventEmitter {
|
|||
private _timeout;
|
||||
onchange: GPIOChangeEventHandler | undefined;
|
||||
constructor(portNumber: PortNumber);
|
||||
readonly portNumber: PortNumber;
|
||||
readonly portName: PortName;
|
||||
readonly pinName: PinName;
|
||||
readonly direction: DirectionMode;
|
||||
readonly exported: boolean;
|
||||
get portNumber(): PortNumber;
|
||||
get portName(): PortName;
|
||||
get pinName(): PinName;
|
||||
get direction(): DirectionMode;
|
||||
get exported(): boolean;
|
||||
export(direction: DirectionMode): Promise<void>;
|
||||
unexport(): Promise<void>;
|
||||
read(): Promise<GPIOValue>;
|
||||
|
|
Loading…
Add table
Reference in a new issue