Skip to content

Simple Arduino class for 7 segment LED display with TM1637

License

Notifications You must be signed in to change notification settings

runvnc/sevensegmenttm1637

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Arduino class for TM1637 based on moozzyk's code. Can show text and also scrolling text.

If it is string representing a floating point number then showText will show the decimal point correctly and right align. (You can use snprintf to format with a certain number of decimal places before calling showText.)

#include "sevensegtm1637.h"

const int clockPin = 22;
const int dataPin = 23;

SevenSegmentTM1637 ledDisplay(clockPin, dataPin);

void setup() {
  ledDisplay.init();
  ledDisplay.showText("Init");
  delay(1000);
  ledDisplay.scrollText("0123456789  abcdefghijklmnopqrstuvwyz");
}

void loop() {
  ledDisplay.updateScroll();
}

About

Simple Arduino class for 7 segment LED display with TM1637

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages