- Seven Segment Display
- IC 4511
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);
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!