microbit-lib

Four Digit Display TM1637 drive

Four Digit Display is a Module with four 7-segment LED, it can show number. It has TM1637 chip inside, control with a two line interface.

This drive base on mcauser’s TM1637 LED driver:
https://github.com/mcauser/micropython-tm1637

Some TM1637 module need 5V power supply.

API

example

from microbit import *
import TM1637

tm=TM1637.TM1637(dio=pin13,clk=pin14)

n = 0
while 1:
    tm.shownum(n)
    n += 1
    time.sleep_ms(1000)

From microbit/micropython Chinese community.
www.micropython.org.cn