Skip to content

A C library for controlling Titan Micro Electronic's 7-segment LED controller

License

Notifications You must be signed in to change notification settings

bitbank2/tm1637

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A C library for controlling Titan Micro Electronic's 7-segment LED controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published