stevieb9 / rpi-wiringpi

Perl interface to Raspberry Pi's board, GPIO and various sensors and ICs
7 stars 1 forks source link

implement "pseudo pins" so that GPIO expanders act as normal pins #101

Closed stevieb9 closed 5 years ago

stevieb9 commented 5 years ago

For example, if we attach a stepper motor to an MCP23017 or shift register, we can create an expansion object with it's direct pin mappings (0-15 for example), but RPi::WiringPi would create a list of pseudo pins which can be used to directly reference the expander pins, eg: pins 400-415 would map to 0-15 on the expander.

This would allow us to communicate directly through a RPi::Pin object and translate it to the pins of the expander.

stevieb9 commented 5 years ago

This isn't really needed at this point in time.