def METHOD_NAME(self, index: T, value: bool) -> None:
    """Sets the value of the last-register.
    Args:
        index: the internal data key (corresponding to the vibrational mode).
        value: True if the register is to be set to 1, False for 0.
    """
    if value:
        self.set_bit(index, 0)
    else:
        self.clear_bit(index, 0)