Skip to content

Latest commit

 

History

History
54 lines (47 loc) · 1.13 KB

README.md

File metadata and controls

54 lines (47 loc) · 1.13 KB

Seven Segment Display

Requirements

  • Seven Segment Display
  • IC 4511

The Circuit

The circuit

How to use

Include the library in your project

#include "SevenSegment.h"

After that, set the IC's pins that are connected to the Arduino

SevenSegment displayLed(3, 4, 5, 6); 

Commands

You can display a number at a time:
displayLed.numberZero(); //Standard delay is 1000
displayLed.numberZero(300); //You can modify the delay!

Other numbers:

  • numberOne()
  • numberTwo()
  • numberThree()
  • numberFour()
  • numberFive()
  • numberSix()
  • numberSeven()
  • numberEight()
  • numberNine()

#####You can set a interval of numbers to display

displayLed.chooseNumbers(2, 5); //The display will show the numbers 2 to 5, with a standard delay of 1000
displayLed.chooseNumbers(2, 5, 400); //You can modify the delay!

displayLed.chooseNumbers(8, 4); //The display will show the numbers 4 to 8 in descending order

#####You can show all numbers at once! :D

displayLed.allNumbers(); 
displayLed.allNumbers(400); //You can modify the delay!