示例#1
0
 def __forwardMotor(self,motor):
     """set forward motor."""
     beaglebone.gpioOn(motor[0])
     beaglebone.gpioOff(motor[1])
示例#2
0
 def __backMotor(self,motor):
     """set back  motor."""
     beaglebone.gpioOff(motor[0])
     beaglebone.gpioOn(motor[1])
示例#3
0
 def stop(self):
     for pin in self._all_pins:
         beaglebone.gpioOff(pin)