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
var rpio = require('../lib/rpio');
rpio.init({mock: 'raspi-3'});
rpio.init({mapping: 'gpio'});
rpio.open(17, rpio.OUTPUT, rpio.LOW); // Opens GPIO 17 as output and set to low
rpio.write(17, rpio.HIGH); // Setze GPIO 17 auf HIGH*/
console.log('GPIO 17 im Mock-Modus auf HIGH gesetzt');
Im using GPIO Pin 17 (Pin 11)
what I need to do?
The text was updated successfully, but these errors were encountered:
Mock mode means the library won't actually do anything, it's just to run through internal parts for e.g. testing, but it will not interact with hardware at all. Try removing the rpio.init({mock: 'raspi-3'}); line.
i use:
var rpio = require('../lib/rpio');
rpio.init({mock: 'raspi-3'});
rpio.init({mapping: 'gpio'});
rpio.open(17, rpio.OUTPUT, rpio.LOW); // Opens GPIO 17 as output and set to low
rpio.write(17, rpio.HIGH); // Setze GPIO 17 auf HIGH*/
console.log('GPIO 17 im Mock-Modus auf HIGH gesetzt');
Im using GPIO Pin 17 (Pin 11)
what I need to do?
The text was updated successfully, but these errors were encountered: