Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5. (4 pts.) In blink4, the following lines are used: #de fine PIN-LER0wd1 sonst

ID: 3743277 • Letter: 5

Question

5. (4 pts.) In blink4, the following lines are used: #de fine PIN-LER0wd1 sonst byte ledRinsll - I PIN LEDO, PIN LED1, PIN LED2, PIN LED3 ; Why go to the trouble of defining and using symbolic names (like PIN LED0) instead of using 11 throughout the program? Appendix- blink4.ino Pin 12 Pin 11 SWO *Flash the four LEDs in sequence, pausinig DELAYTIME BETWEEN millisecond betreen individual LED followed by a delay of DELAYTIME_AFTER after the last repeating forever * Written by Eric B. Herts for ME106 Last modified by B. Furman on February 1. 2018 * ver ion 1-1 #define #define DELAYTIME-BETWEEN DELAYTIME-AFTER 20 Dvd/ 80nd/ 200 a00 ees" (0.2s) 0.82) LE D8 #de fine PINLEDO 11 #define PINLED! #define PINLED2 #define PINLEDS #de fine PIN3W0 12 - - - - - // set of LEDs to use, and number of array elements sepee byte deARARA [ ] = { PIN-LEDO, PIN-LED1, PIN-LED2 , PIN-LED3 }; GNDI ze setupt) byte i* BReedNPIN. SWO, INPUT PULLUP); * Flash the LEDs specified in the aray in sequence, pausing at the end only if SWO active-lor) is pressed HIGH) delay (DELAYTIMEBETWEEN): delay (DELAYTIMEBETWEEN): delay [DELAYTIME_AFTER)

Explanation / Answer

There are two main reasons for defining and using symbolic names:

Thus the use of symbolic names brings in a lot of advantage and makes the development process easy and swift.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote