BeNeuroLab / PyTreadmillTask

Spherical treadmill task based on the PyControl framework
0 stars 3 forks source link

Led device: turn previous LEDs off #44

Closed AtMostafa closed 12 months ago

AtMostafa commented 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()