Add static property 'accessile' to onoff.Gpio class

This commit is contained in:
Teagan Durtschi
2018-10-21 09:49:05 -04:00
parent 0e95a07e46
commit a912b2d3b6
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;