Complete the code to set pin 2 as an output.
pinMode([1], OUTPUT);Pin 2 is the correct pin to set as output for the seven-segment display control.
Complete the code to turn on segment A by setting pin 2 HIGH.
digitalWrite([1], HIGH);Pin 2 controls segment A, so setting it HIGH turns it on.
Fix the error in the code to turn off segment B connected to pin 3.
digitalWrite([1], LOW);Pin 3 controls segment B, so setting it LOW turns it off.
Fill both blanks to create a function that turns on segment C connected to pin 4.
void turnOnSegmentC() {
digitalWrite([1], [2]);
}Pin 4 controls segment C, and setting it HIGH turns it on.
Fill all three blanks to create a function that turns off segments D and E connected to pins 5 and 6.
void turnOffSegments() {
digitalWrite([1], [2]);
digitalWrite([3], LOW);
}Pin 5 and pin 6 control segments D and E. Setting them LOW turns them off.
