Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 int pin 1 = 1 2 ; int pin 2 = 1 1 void etup ( ) { pinMode ( pini , OUTPUT

Question 3
int pin1=12;
int pin2=11
void etup (){
pinMode(pini, OUTPUT):1
pinMode(pin2, INPUT);
Serial, begin (9600);
}
What is the output of "pin 1" if "pin2" is sent "1011" where 1 is 5V and 0 is OV?
8. void 100 p (){
9. if (digitalRead (pin2)==1){
10. digitalWrite(pin1, LOW);
11.}
12. else digitalRead (n2)==0)
13. digitalWrite(pin1, HIGH);
14.}
15.}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions