Closed AtMostafa closed 12 months ago
def cue_array(self, arr:list): "turn on the LEDs corresponding to the given directions" self.all_off() for d in arr: led = 'led' + str(d) getattr(self, led).on()