Go Down

Topic: Switching code when in specific condition (Read 283 times) previous topic - next topic

perenaar

Hello there!

I would like to do the following:

1) Default setting: sensor1<200=led,LOW || sensor2<200=led,LOW

2) if(sensor1<200 && sensor2<200)= led = LOW

3) if condition 2) changes to: sensor1>200 && sensor2<300 || sensor1<200 && sensor2>300 =led,HIGH

4) from condition 3) to default

How can I do this?

Thanks in advance!

holmes4

In loop(), hint loop is called repeatedly.

Mark

Arrch

How many posts are you going to make of the same issue, in different areas of the forum, with different titles and descriptions?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy