def _bit_value(self, group, val):
        """Set the LED on/off value from the LED bitmap."""
        bitshift = group - 1
        if val:
            new_value = self._value | (1 << bitshift)
        else:
            new_value = self._value & (0xff & ~(1 << bitshift))
        return new_value
Set the LED on/off value from the LED bitmap.