Wilfried Klaas 40cb208ec2 initial commit in git, version 0.9 | 6 ani în urmă | |
---|---|---|
.. | ||
docs | 6 ani în urmă | |
examples | 6 ani în urmă | |
old | 6 ani în urmă | |
.gitignore | 6 ani în urmă | |
.travis.yml | 6 ani în urmă | |
LICENSE | 6 ani în urmă | |
README.md | 6 ani în urmă | |
TM1637Display.cpp | 6 ani în urmă | |
TM1637Display.h | 6 ani în urmă | |
library.json | 6 ani în urmă | |
platformio.ini | 6 ani în urmă | |
release_notes.md | 6 ani în urmă |
Arduino library for TM1637 (LED Driver)
An Arduino library for 7-segment display modules based on the TM1637 chip, such as Seeed Studio's Grove 4 digit display. The TM1637 chip also has keyboard input capability, but it's not implemented in this library.
The display modules has two signal connection (and two power connections) which are CLK and DIO. These pins can be connected to any pair of digital pins on the Arduino. When an object is created, the pins should be configured. There is no limitation on the number of instances used concurrently (as long as each instance has a pin pair of its own)
The library is installed as any Arduino library, by copying the files into a directory on the library search path of the Arduino IDE
The library provides a single class named TM1637Display. An instance of this class provides the following functions:
setSegments
- Set the raw value of the segments of each digitshowNumberDec
- Display a decimal numbershowNumberDecEx
- Display a decimal number with decimal points or colonsetBrightness
- Sets the brightness of the displayThe information given above is only a summary. Please refer to TM1637Display.h for more information. An example is included, demonstrating the operation of most of the functions.