jperkin / node-rpio

Raspberry Pi GPIO library for node.js
858 stars 124 forks source link

Mock gpio not read value #58

Closed leonardovilarinho closed 4 years ago

leonardovilarinho commented 6 years ago

Hi, I have this code:

rpio.open(7, rpio.OUTPUT,  rpio.HIGH)
console.log(rpio.read(7))

The output always undefined, as this problem can resolved?

jperkin commented 6 years ago

Yeh, I think it's reasonable that mock mode at least outputs correct values and makes an attempt at tracking what would have happened, I'll look at adding this.

ghost commented 6 years ago

Hi, Is there any update on this? I am also facing the same issue.

jperkin commented 6 years ago

Not yet unfortunately, I haven't had time to maintain this module recently. I'll see if I can make some time soon to resolve these issues.