def do(self, action): if action is not None: for k, v in action.iteritems(): if k == 'level': grovepi.ledBar_setLevel(self._pin, v)
def _init_actuator(self): grovepi.ledBar_init(self._pin, 0) sleep(0.5) grovepi.ledBar_setLevel(self._pin, 5)
def do(self, action): if action is not None: for k, v in action.iteritems(): if k == 'level': grovepi.ledBar_setLevel(self._pin, v)
def _init_actuator(self): grovepi.ledBar_init(self._pin, 0) sleep(0.5) grovepi.ledBar_setLevel(self._pin, 5)