[−][src]Crate tm1637_gpio_driver
Zero-dependency generic GPIO driver for TM1637. With this driver you can control for example the 4-digit 7-segment display from AZ-Delivery. This is not dependent on a specific GPIO library. This library was tested on a Raspberry Pi with its GPIO interface. Feel free to contribute. :)
Modules
fourdigit7segdis | Utility functions on top of the TM1637 driver to display content on the 4-digit 7-segment display by AZDelivery. You can use them but you don't have to. They show how the driver works/could be used. |
gpio_api | Provides ready to use setup functions for concrete GPIO libraries/drivers. You may use them but it is not required. You can learn from the code and write setup functions by yourself! |
mappings | Provides mappings from symbols to their bit representation on a 7-segment display. |
Structs
TM1637Adapter | Adapter between your code and the TM1637 via GPIO interface. You can use the GPIO interface/library that you want. Just provide the corresponding "glue" functions so that this adapter can access GPIO. |
Enums
Brightness | The level of brightness. The TM1637 "DisplayControl"-command transports the brightness information in bits 0 to 2. |
DisplayState | Whether the display is on or off. The TM1637 "DisplayControl"-command transports the display on/off information in the third bit (2^3) of the command. |
GpioPinValue | The value of a GPIO pin. |
ISA | The "ISA"/Commands of the TM1637. See data sheet for more information. This is only a subset of the possible values. |
Constants
DISPLAY_REGISTERS_COUNT | According to the data sheet the TM1637 can address 6 display registers. Note that not all devices using it do as well. For example the 4-digit 7-segment display from AzDelivery only uses 4. |