stevieb9 / rpi-wiringpi

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

cleanup() needs to manage *all* pins, registered or not #34

Closed stevieb9 closed 7 years ago

stevieb9 commented 7 years ago

This breaks I2C entirely.

Add a test file that changes pin mode to the ALT configurations

stevieb9 commented 7 years ago

It looks like this is happening in the cleanup() method.

We need to have a dictionary of default pin settings, then on cleanup, sweep them all and set them back to that default.

stevieb9 commented 7 years ago

Need to further investigate on how to best fix cleanup...