pub fn debounce_bit( prev_out: bool, curr_in: bool, counter: u8, hold_count: u8, ) -> (bool, u8)
Debounce mask: require a stable hold_count frames before accepting changes.
hold_count