void setup() {
// put your setup code here, to run once:
}
void loop() {
if(Serial.avaliable() ){
char input = Serial.read();
switch (inuput) {
case '1';
xAxis = analogRead(A0);
Serial.print("x: ");
Serial.println(xAxis);
//ASCII value of 1, which is 49
break;
case '2';
//ASCII value of 2, which is 50
break;
case '3';
// ASCII value of 3, which is 51
break;
}
}
}
position tracking
3 circles for plane
6 sphere for space