Purpose of this tutorial:
In this tutorial we will see how to create a stopwatch with the micro:bit card and the TM1637 display:
- When you press the A button of the Micro:bit, the stopwatch is triggered.
- When the Micro:bit B button is pressed, the stopwatch stops and returns to the value 0.
Required Components
- Micro:bit Board
- TM1637 display
- GPIO Extension Board
- Connector Wires
Mounting
To complete the mounting, connect:
- the VCC pin of the display to the 3.3V pin of the micro:bit.
- The GND pin from the display to the micro:bit GND pin
- The DIO pin from the display to the micro:bit adapter pin P1
- The CLK pin from the display to the micro:bit adapter pin P2
There are several mounting methods.
Makecode program
Here is the makecode program that allows you to create a stopwatch and display it on the TM1637 display.
Note: You must go to Extensions to import the TM1637 extension.