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
When data is read, we're supposed to emit an event with the name digital-read-${pin}. Now here's the rub: is pin supposed to be the normalized pin, or the value passed to digitalRead?
In Raspi IO, these will pretty much always be different (e.g. GPIO10 normalizes to 12). Currently, Raspi IO emits digital-read-GPIO10 instead of digital-read-12, but I kinda feel like it should be the other way around. Thoughts?
The text was updated successfully, but these errors were encountered:
I was reading over the spec for
digitalRead
while working on nebrius/j5-io#6, and I realized there's some ambiguity at play in https://github.com/rwaldron/io-plugins#digitalreadpin-handler.When data is read, we're supposed to emit an event with the name
digital-read-${pin}
. Now here's the rub: ispin
supposed to be the normalized pin, or the value passed todigitalRead
?In Raspi IO, these will pretty much always be different (e.g.
GPIO10
normalizes to 12). Currently, Raspi IO emitsdigital-read-GPIO10
instead ofdigital-read-12
, but I kinda feel like it should be the other way around. Thoughts?The text was updated successfully, but these errors were encountered: