Merge pull request #29921 from tdurtschi/master

Add static property 'accessile' to onoff.Gpio class in types/onoff
This commit is contained in:
Daniel Rosenwasser
2018-11-01 14:46:38 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -28,6 +28,8 @@ declare namespace __ONOFF {
options?: GpioOptions
);
static accessible: boolean;
gpio: number;
gpioPath: string;
opts: GpioOptions;
+2
View File
@@ -14,3 +14,5 @@ setTimeout(function() {
led.writeSync(0);
led.unexport();
}, 2000);
var accessible:boolean = onoff.Gpio.accessible;