mirror of
https://github.com/kou029w/megabit.git
synced 2025-01-30 21:58:04 +00:00
use GPIO to correct OperationError
This commit is contained in:
parent
bfc0a95e64
commit
889b494c3f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export class GPIO extends GPIOPort {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function gpio(pin: number) {
|
export function gpio(pin: number) {
|
||||||
return new GPIOPort(pin);
|
return new GPIO(pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default gpio;
|
export default gpio;
|
||||||
|
|
Loading…
Add table
Reference in a new issue