pmiguelpinto90 / ShiftDisplay

Arduino library for driving 7-segment displays using shift registers
GNU General Public License v3.0
31 stars 15 forks source link

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

ShiftDisplay

by MiguelPynto

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 ShiftDisplay library by typing shiftdisplay in 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--) {
        // 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

Notes

TODO

TODO

TODO

TODO

TODO

Changelog

TODO

Contacts