View on GitHub

ShiftDisplay

Arduino library for driving 7-segment displays using shift registers

https://miguelpynto.github.io/ShiftDisplay/

ShiftDisplay

by MiguelPynto

Arduino library for driving 7-segment displays using 74HC595 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 ShiftDisplay library by typing shiftdisplay on Filter your search
  4. Select ShiftDisplay by MiguelPynto and click install

Example

#include <ShiftDisplay.h>

ShiftDisplay display(COMMON_CATHODE, 3);

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

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

Reference

Constructors

Functions

Constants

Notes

TODO

TODO

TODO

TODO

Changelog

TODO

Contacts