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