Answer the question
In order to leave comments, you need to log in
Why are GPIOs not responding to commands (Orange PI Win Plus/WiringOP/NodeJS)?
Installed WiringOP.
I installed orange-pi-gpio for the node.
I connected the LED to 38-39 GPIO.
js code:
const Gpio = require('orange-pi-gpio');
let gpio = new Gpio({pin:38});
gpio.write(0)
.then((res)=>{
console.log('succes: '+res);
})
.catch((err)=>{
console.log('err: '+err);
});
gpio readall
- reads successfully.gpio write 38 0
gpio write 28 0
- to no avail Answer the question
In order to leave comments, you need to log in
I don’t know what exactly happened, but I reinstalled everything with a clean Armbian and everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question