adding legacy code for debouncing and sevenseg
started block to handle displaying registers on sevenseg