Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 939 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 939 Bytes

Module michaellee1019:tm1637

A module for the tm1637 4-digit 7-segment display.

Model michaellee1019:tm1637:time

This model displays the current system time on a tm1637 4-digit 7-segment display.

Configuration

{
    "clk_pin": 18,
    "dio_pin": 17
}

Attributes

The following attributes are available for this model:

Name Type Inclusion Description
clk_pin int Required The GPIO pin number connected to the clock signal pin of the tm1637.
dio_pin int Required The GPIO pin number connected to the data input/output pin of the tm1637.

TODO: switch from GPIO to Board pin numbers.

DoCommand Examples

Flash Time

This command flashes the current system time for a configurable amount of seconds.

{
    "flash_time": {"duration": 5}
}