Closed arakis closed 11 years ago
Thanks. I'll make those changes shortly.
"Shortly"? Please define "shortly" ;) In the moment, i have a locally patched version of your library.
Greetings, Sebastian
I'm curious what you did for your patch? Do you still support revision 1 boards?
I've updated my code with commit 11285685cc027a96061462295b3fc83a3922f7c7. I'm not a fan of doing it this way but it's the easiest solution. You can't subclass an enum so I've been looking in to changing the enum to a class and then that would allow me to subclass it with a new class called GPIOPinsRev2. That in my mind makes it more explicit.
Hey, since the board Rev2 has changed some GPIO numbers, you should modify the GPIPins-enum.
Documentation: http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29
Source changes:
public enum GPIOPins { GPIO_NONE = -1, GPIO00 = 0, GPIO01 = 1,
Greetings, Sebastian