jwhitehorn / pi_piper

Event driven Raspberry Pi GPIO programming in Ruby
BSD 2-Clause "Simplified" License
694 stars 71 forks source link

Which is the :pin number? #20

Open jeena opened 10 years ago

jeena commented 10 years ago

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?

jwhitehorn commented 10 years ago

This is an excellent idea!

v0dro commented 9 years ago

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