Question: What will the following Arduino code print: int j = 1 ; void setup ( ) { Serial.begin ( 9 6 0 0 ) ;

What will the following Arduino code print:
int j=1;
void setup(){
Serial.begin(9600) ;
}
void loop (){
for (j=1; j<4 ; j=j+1){
Serial.print(j);
}
}
int y;
void setup(){
pinMode(A1, INPUT);
pinMode(3, OUTPUT);
pinMode(4,__________);
}
void loop(){
y=analogRead(A1);
if((y>200) && (y<300)){
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
}else {
digitalWrite(3,__________);
digitalWrite(4,__________);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!