|
@@ -132,10 +132,10 @@ class PinBase(object):
|
|
|
def output(self,value):
|
|
|
[value] = _gpio.parse_to_int_list(value)
|
|
|
self.value = value
|
|
|
- _gpiooutput(self.pin_number,value)
|
|
|
+ _gpio.utput(self.pin_number,value)
|
|
|
|
|
|
def read(self):
|
|
|
- value = _gpioread(self.pin_number,value)
|
|
|
+ value = _gpio.ead(self.pin_number,value)
|
|
|
return value
|
|
|
|
|
|
class DigitalPin(PinBase):
|
|
@@ -314,17 +314,17 @@ class DebugPinController(PinControllerBase):
|
|
|
respond(ERROR_TAKES_ARGUMENTS.format(
|
|
|
command, "two", "positional", "<name>"))
|
|
|
return False
|
|
|
- pins = _gpioparse_to_int_list(args[0])
|
|
|
- [state] = _gpioparse_to_int_list(args[1])
|
|
|
+ pins = _gpio.arse_to_int_list(args[0])
|
|
|
+ [state] = _gpio.arse_to_int_list(args[1])
|
|
|
gpio.output(pins,state)
|
|
|
def read(self,args=[],command=None,respond=None):
|
|
|
if len(args) != 2:
|
|
|
respond(ERROR_TAKES_ARGUMENTS.format(
|
|
|
command, "two", "positional", "<name>"))
|
|
|
return False
|
|
|
- pins = _gpioparse_to_int_list(args[0])
|
|
|
- [state] = _gpioparse_to_int_list(args[1])
|
|
|
- return _gpioread(pins,state)
|
|
|
+ pins = _gpio.arse_to_int_list(args[0])
|
|
|
+ [state] = _gpio.arse_to_int_list(args[1])
|
|
|
+ return _gpio.ead(pins,state)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
pass
|