A powerful but easy to use versatile 7 Segment Library for the arduino environment.
One can easily install using arduino library manager
or one install using the zip file
installtion method
-
void setPin1(uint8_t pin); void setPinA(uint8_t pin);
-
void setPin2(uint8_t pin); void setPinB(uint8_t pin);
-
void setPin3(uint8_t pin); void setPinC(uint8_t pin);
-
void setPin4(uint8_t pin); void setPinD(uint8_t pin);
-
void setPin5(uint8_t pin); void setPinE(uint8_t pin);
-
void setPin6(uint8_t pin); void setPinF(uint8_t pin);
-
void setPin7(uint8_t pin); void setPinG(uint8_t pin);
-
void setPinDP(uint8_t pin);
-
void setType(unsigned int type); //values accepted are CATHODE or ANODE
-
void setNumber(uint8_t number, bool dot=false);
-
void setCharacter(char character, bool dot=false);
-
void setCustomCharacter(bool customCharacter[]); // The customCharacter array length could be either 7 or 8 elemnts long
-
void displayRange(uint8_t start, uint8_t end, unsigned long delayTime=MIN_BLINK_TIME); //min delay is 1/2 second
#define CATHODE 0
#define ANODE 1
#define MIN_BLINK_TIME 500
class led7Segment {
public:
bool nothing[8] = {0, 0, 0, 0, 0, 0, 0, 0}; // could be used to turn of or display nothing on the 7 segment display
};
The code and its usage has been tested using Proteus simulation software
For the usage examples check out the examples folder
If you have any feedback, please reach out to us at me@dhruvashaw.in