Make a manual counter based on Nezha Pro Sport Kit. By pressing button C or button D, the corresponding value can be counted independently and displayed in real time on the OLED display. This counter can be used for counting the number of times in sports training, such as counting effective stabs in fencing training and counting the number of hits in shooting training. It combines simple button operation with digital display to create a convenient manual counting tool.
Understand the trigger mechanism of key events and the logic of variable increment.
Master the programming method of dynamically updating different values on the OLED display.
Develop the ability to apply basic programming skills to actual sports scenarios.
Students, if you want to record the number of effective stabs during fencing training, or want to count the number of hits during shooting training, it is too difficult to count with your brain! Today we use the Nezha Pro sports suit to make a super practical manual counter! Pressing buttons C and D will automatically increase the number, and you can see it clearly on the screen. Come and build your own sports assistant to make counting easy and accurate!
Explore the programming response method of key trigger events, and how to realize the increment and display of independent counting variables corresponding to different buttons.