|
@@ -98,7 +98,7 @@ class PinControllerBase(object):
|
|
|
PinControllerBase is the base class for all classes controlling one or more physical devices connected to a gpio header
|
|
|
|
|
|
"""
|
|
|
- pin_numbers = []
|
|
|
+ pins = []
|
|
|
def __init__(self):
|
|
|
super(PinControllerBase, self).__init__()
|
|
|
|
|
@@ -129,7 +129,7 @@ class PCEngine(PinControllerBase):
|
|
|
self.pin_analog = DigitalPin(pin_analog)
|
|
|
self.pins.append(self.pin_on_off)
|
|
|
self.pins.append(self.pin_analog)
|
|
|
- gpio.setup(self.pin_numbers,gpio.OUT)
|
|
|
+ gpio.setup(self.pins,gpio.OUT)
|
|
|
|
|
|
def set_speed(self,speed):
|
|
|
self.pin_analog.output(speed)
|