tm1637-master

所属分类:单片机开发
开发工具:C/C++
文件大小:1589KB
下载次数:1
上传日期:2020-06-02 11:10:28
上 传 者thisismyothercar
说明:  github bitbank2 tm1637

文件列表:
Arduino (0, 2018-04-09)
Arduino\demo.ino (548, 2018-04-09)
Arduino\tm1637.cpp (4824, 2018-04-09)
Arduino\tm1637.h (1062, 2018-04-09)
LICENSE.md (35230, 2018-04-09)
Makefile (253, 2018-04-09)
display.jpg (1770099, 2018-04-09)
main.c (577, 2018-04-09)
make_demo (188, 2018-04-09)
tm1637.c (5327, 2018-04-09)
tm1637.h (1088, 2018-04-09)

TM1637 ![TM1637](/display.jpg?raw=true "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

近期下载者

相关文件


收藏者