diff --git a/src/gpio.ts b/src/gpio.ts index e0465cf..4ecda4d 100644 --- a/src/gpio.ts +++ b/src/gpio.ts @@ -37,7 +37,7 @@ export class GPIO extends GPIOPort { } export function gpio(pin: number) { - return new GPIOPort(pin); + return new GPIO(pin); } export default gpio;