def set_brightness(self, brightness):
        """Set brightness of entire display to specified value (16 levels, from
        0 to 15).
        """
        if brightness < 0 or brightness > 15:
            raise ValueError('Brightness must be a value of 0 to 15.')
        self._device.writeList(HT16K33_CMD_BRIGHTNESS | brightness, [])
def set_brightness ( self , brightness ) : if brightness < 0 or brightness > 15 : raise ValueError ( 'Brightness must be a value of 0 to 15.' ) self . _device . writeList ( HT16K33_CMD_BRIGHTNESS | brightness , [ ] )
Set brightness of entire display to specified value (16 levels, from
        0 to 15).