pi_piper icon indicating copy to clipboard operation
pi_piper copied to clipboard

Which is the :pin number?

Open jeena opened this issue 11 years ago • 2 comments

I had quite some trouble in figuring out that the :pin number actually is the GPIO number, not the physical pin number (and not either the wiringPi number).

So if I want to write to the physical pin number 12 I need to write PiPiper::Pin.new(:pin => 18, :direction => :out).

Would it be possible to add this information somewhere obvious to the documentation?

jeena avatar Feb 22 '14 17:02 jeena

This is an excellent idea!

jwhitehorn avatar Feb 23 '14 20:02 jwhitehorn

I'll take up this issue and come up with an API suggestion in a while. Please assign me to this.

v0dro avatar Apr 14 '15 09:04 v0dro