You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the documentation, it looks like the Promises interface should mirror all of the functions of the synchronous. However, the following code errors out:
var gpiop = require('rpi-gpio').promise;
gpio.setMode(gpio.MODE_BCM);
Or am I misunderstanding how the module is supposed to work?
The text was updated successfully, but these errors were encountered:
From the readme - "All of the same functions are available", so yes this is a bug - thanks for raising it. You should be able to workaround it like this for now:
var gpio = require('rpi-gpio');
var gpiop = gpio.promise;
gpio.setMode(gpio.MODE_BCM);
See test/integration/main.js for a working exampe.
From the documentation, it looks like the Promises interface should mirror all of the functions of the synchronous. However, the following code errors out:
Or am I misunderstanding how the module is supposed to work?
The text was updated successfully, but these errors were encountered: