Fixed forgotten self in the setPinMode method.