4-digit display TM1637 with TinkerPie
Big bright digits: clocks, scoreboards, counters.
| Type | Displays and lights |
|---|---|
| Connect to | CLK and DIO on two pins |
| Gives | numbers and a clock colon |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
OLED and LCD go into a SENSOR port (I2C). The 4-digit display and LED strips use one or two signal pins.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
digits.showNumber(Pin.S1, Pin.S2, 1234)
digits.showTime(Pin.S1, Pin.S2, 9, 30)
// Arduino C++
digits::showNumber(Pin::S1, Pin::S2, 1234)
digits::showTime(Pin::S1, Pin::S2, 9, 30)