-
-
Save v-ivanyshyn/fe831e6d01235474547cd8cd27404536 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void loop() | |
{ | |
int x = analogRead(X_PIN); | |
int y = analogRead(Y_PIN); | |
if (х < 20 && y < 20) | |
digitalWrite(pin9, LOW); | |
else | |
digitalWrite(pin9, HIGH); | |
if (х > 1000 && y > 1000) | |
digitalWrite(pin10, LOW); | |
else | |
digitalWrite(pin10, HIGH); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment