Skip to content

michaellee1019/tm1637

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published