Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1 KB

README.md

File metadata and controls

24 lines (22 loc) · 1 KB

TM1637 TM1637
TM1637 is a simple C library for working with 7-segment LED controllers from Titan Micro Electronics. It features a 2-wire interface (Clock + Data), but doesn't conform to I2C nor SPI standards. It can control up to 6 7-segment digits along with decimal points or colons as well as has 16 button/keyboard inputs. The datasheet says that it runs on 5V with 5V logic, but I've run it on 3.3V (both Vcc and signals) and it seems to behave correctly. Since the communication protocol is custom, it requires "bit-banging" of 2 IO pins to control it.
This repo contains both an Arduino Library + demo sketch as well as a Linux library + demo app. It allows controlling the display with 3 simple functions:

  1. Init
  2. Set Brightness
  3. Display string (formatted text)

Building on Linux

make
make -f make_demo
sudo ./demo

Copyright (c) 2018 BitBank Software, Inc.
Written by Larry Bank
bitbank@pobox.com