ozhantr / DigitLedDisplay

MAX7219/MAX7221 Digital Tube 7-Segment LED Display Arduino Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DigitLedDisplay

DigitLedDisplay is an Arduino library for MAX7219 and MAX7221 8 bit 7-segment digital LED display module drivers.

Install

Arduino library install guide

Or you can copy DigitLedDisplay library to -> arduino\libraries\


Start From Digit: Default Value Zero
digitLedDisplay.printDigit(1234);
digidled0

Start From Digit 4
digitLedDisplay.printDigit(1234, 4);
digidled4

Quickstart

#include <DigitLedDisplay.h>

// initialize with pin numbers for data, cs, and clock
DigitLedDisplay ld = DigitLedDisplay(7, 6, 5);

void setup() {
  ld.setBright(15); // range is 0-15
  ld.setDigitLimit(8);
}

long i = 12345678;

void loop() {
  ld.printDigit(i++);
  delay(10);
}

For additional features see Digit7SegmentDemo.ino

About

MAX7219/MAX7221 Digital Tube 7-Segment LED Display Arduino Library

License:Other


Languages

Language:C++ 100.0%