Believe me, this is very important in the world of web development. Whenever you develop a website, you have to design it, in such a way, that it should load up as quickly possible. So you need to know how to handle the content and let your pages generate very few requests as possible. Here are some very informative points. Do save the post. You will definitely need it. Swipe for another one
Keep sharing and do follow @_tech_universe for more informative posts and some funny memes
Function application on Arduino... 7 segment LED display has 10 pins on it. 8 of them are for the LEDs and 2 of them (common) for the ground. The letters A,B,C...on the schema, indicates the relation between the pins and the LEDs. Each pin is connected to Arduino.
For the programming aspect; I have defined a function for each number to be displayed.(see the "Display" tab on the pictures.) Pay attention that I have a "cleardisplay" function at the beginning that I use within the other functions to avoid the repetition of the codes. And also pay attention that I have defined a "msec" parameter in the display functions which is the variable for delay. So we can avoid repeating the delay codes in the main script. Once the display functions are ready, I summon them in the "Void loop" section just putting the delay time in the paranthesis, as the parameter is already defined in display function.