Skip to content

Instantly share code, notes, and snippets.

@altanhaligur
Last active July 6, 2019 21:00
Show Gist options
  • Save altanhaligur/35a8932417edf02175f5e3290c88bc4d to your computer and use it in GitHub Desktop.
Save altanhaligur/35a8932417edf02175f5e3290c88bc4d to your computer and use it in GitHub Desktop.
int xPin = A0;
int xPozisyonu = 0;
void setup() {
Serial.begin(9600);
pinMode(xPin, INPUT);
}
void loop() {
xPozisyonu = analogRead(xPin);
Serial.print(xPozisyonu);
Serial.print("\n");
delay(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment