Question: const int switchPin = 2 ; int switchState = - 1 ; / / * void setup ( ) { Serial.begin ( 1 1 5
const int switchPin ; int switchState ; void setup Serial.begin; pinModeswitchPin INPUT; digitalWriteswitchPin HIGH; void loop switchState digitalReadswitchPin; Serial.printlnswitchState; delay; Question marks In the above code for a microswitch, what does the line commented with a do A Decreases the value of switchState from to B Activates a pullup resistor on pin C Initialises switchState to an impossible value before reading D Converts the value read in on switchPin from analogue to digital
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
