7. Case 04: Counter#

7.1. Purpose#

Use the Smart Coding Kit to create a wearable counter.

7.3. Software#

MakeCodemakecode

7.4. Programming#

Programme to show icon while on start and set the variable i as 0; Set i=i+1 while button A being pressed, Set i=i-1 while button B being pressed. Drag the show digital block to the Forever block and choose to display i of the value of the variable.

../../_images/smart_coding_kit_case_04_02.png

7.5. Result#

Start counting and displaying the results through button A or B.

7.6. Exploration#

7.7. FAQ#

7.8. Relevant File#