Requirements:
Timing time of 15 s (can adjust) button then buzzer rang;
Separate button to stop, start, time + 1 s, time - 1 s,
Use tian-xiang guo development version (classic version)
CodePudding user response:
Program to the simple side, digital tube, a total of Yin, six, P2.6 segment code and bit code P2.7; 15 s timing, timing of adjustment time can be in a separate buttons, buzzer rang (P2.3) the time came, reset buttons don't tube, development version attachedCodePudding user response:
If can put the time accurate to 0.01 s, buttons to adjust the time is 1 s