the setup routine runs once when you press reset void setup

//the setup routine runs once when you press reset; void setup() {//initialize serial communication at 9600 bits per second; Serial.begin(9600); pinmode(12, output); pinmode(13, output);//the loop routine runs over and over again forever: void loop() {digitalWrite(12, HIGH); digitalWrite(13, HIGH);//read the input on analog pin 0: int sensorValue= analogRead(A5);//convert the analog reading (which goes from 0 - 1023) to a voltage a90-5v): float voltage - sensorValue (5.0/1023.0); For the following code what output pins are used? 9600 and A5 12 and 13 12, 13 and A5 A5

Solution

It is already given in the first function setup(). Pins 12 and Pin 13 are used for output with the baud rate of 9600 as mentioned in the first function. So answer is Option B is correct. Pin A5 used for Input purpose.

 //the setup routine runs once when you press reset; void setup() {//initialize serial communication at 9600 bits per second; Serial.begin(9600); pinmode(12, ou

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site