Home

Awesome

arduino-library-badge Build Status

https://ameer.io/ShiftDisplay2/

ShiftDisplay2

by Ameer Dawood

The original ShiftDisplay library was developed by Miguel Pynto. This is an enhanced fork by Ameer Dawood

Arduino library for driving 7-segment displays using shift registers

breadboard

Hardware

Wiring

  1. Connect Arduino board to shift registers: input

  2. Connect shift registers to display(s): output

Install

  1. Launch the Arduino IDE
  2. Open the Library Manager by going to menu: Sketch > Include Library > Manage Libraries
  3. Search for ShiftDisplay2 library by typing shiftdisplay2 in Filter your search
  4. Select ShiftDisplay2 by Ameer Dawood and click install

Example

#include <ShiftDisplay2.h>

ShiftDisplay2 display(COMMON_CATHODE, 3);

void setup() {
	for (int i = 3; i > 0; i--) {
		// store number and show it for 400ms
		display.set(i, ALIGN_CENTER);
		display.show(400);
		// add dot to stored number and show it for 400ms
		display.changeDot(1);
		display.show(400);
	}
	display.set("GO"); // store "GO"
}

void loop() {
	display.update(); // show stored "GO" while in loop
}

Reference

Constructors

Functions

Types

TODO

Contacts