Closed 13 closed 3 years ago
There is no exact equivalent but it should be possible to implement the equivalent using the functionality provided by pigpio. What have you tried and what were the issues?
Resolved by inverting the logic
function setRelay(gpio,state) {
if (state){
gpio.digitalWrite(!true)
} else {
gpio.digitalWrite(!false)
}
}
I'm running a relay with the following onoff library initialization:
var relay = new Gpio(4, 'high', {activeLow:true})
Exists there a pigpio equivalent?