src/is31fl32xx/is31fl32xx.py
def enable_leds(self, ena_list):
        """enable_leds()
        enables/disables all leds. ena_list needs to contain exactly 18 items
        """
        if len(ena_list) != len(self._reg_map["ctrl"]):
            raise ValueError("ena_list needs to have {0} items".format(
                len(self._reg_map["ctrl"])))
        # each register represents one led's drive current, with 0x30=Imax and 0x00=0. The value in between are
        # not proportional, they look arbitrary to me. Look at the datasheet if you want to use them
        for idx in range(0, 18):
            ena_byte = 0
            if ena_list[idx]:
                ena_byte = 0x30
            # send the actual enable command
            # raise RuntimeError("{0}".format(dir(self)))
            self.write_registers(self._reg_map["ctrl"][idx], [ena_byte])
enable_leds()
        enables/disables all leds. ena_list needs to contain exactly 18 items
        
enable_leds()
enables/disables all leds. ena_list needs to contain exactly 18 items
enable_leds () enables / disables all leds . ena_list needs to contain exactly 18 items
def enable_leds(self, ena_list):
        if len(ena_list) != len(self._reg_map["ctrl"]):
            raise ValueError("ena_list needs to have {0} items".format(
                len(self._reg_map["ctrl"])))
        for idx in range(0, 18):
            ena_byte = 0
            if ena_list[idx]:
                ena_byte = 0x30
            self.write_registers(self._reg_map["ctrl"][idx], [ena_byte])
def enable_leds ( self , ena_list ) : if len ( ena_list ) != len ( self . _reg_map [ "ctrl" ] ) : raise ValueError ( "ena_list needs to have {0} items" . format ( len ( self . _reg_map [ "ctrl" ] ) ) ) for idx in range ( 0 , 18 ) : ena_byte = 0 if ena_list [ idx ] : ena_byte = 0x30 self . write_registers ( self . _reg_map [ "ctrl" ] [ idx ] , [ ena_byte ] )
enable_leds()
enables/disables all leds.
enable_leds () enables / disables all leds .
"""enable_leds()
        enables/disables all leds. ena_list needs to contain exactly 18 items
        """ # each register represents one led's drive current, with 0x30=Imax and 0x00=0. The value in between are # not proportional, they look arbitrary to me. Look at the datasheet if you want to use them # send the actual enable command # raise RuntimeError("{0}".format(dir(self)))
self
ena_list