In the impression B-level test questions, there was something like this: "哒" represents three times the time. A "bit" represents a ticket, "111" represents "哒", "1" represents "嘀", and "0" represents an interval. To start a timer as a counter, you can count the tickets. It's easy to handle with a switch, but if you use a key, you need appropriate redundancy.