Browse Source

„TactiloControllerPanda.ino“ ändern

master
Tobias Baumann 2 years ago
parent
commit
acac02d6ea
1 changed files with 47 additions and 47 deletions
  1. 47
    47
      TactiloControllerPanda.ino

+ 47
- 47
TactiloControllerPanda.ino View File

@@ -78,52 +78,52 @@ void processSerialData(char SerialData)
if(digitalRead(LED) == LOW)
{
digitalWrite(LED, HIGH);
Serial.println("...Start Tactile Session");
Serial.println("...Start Tactile Session");
}
else
{
set_AllLow();
Serial.println("...End Tactile Session");
}
break;
case '1':
digitalWrite(TAC1, !digitalRead(TAC1));
Serial.print("Tactilo 1: ");
Serial.println(digitalRead(TAC1));
break;
case '2':
digitalWrite(TAC2, !digitalRead(TAC2));
Serial.print("Tactilo 2: ");
Serial.println(digitalRead(TAC2));
break;
case '3':
digitalWrite(TAC3, !digitalRead(TAC3));
Serial.print("Tactilo 3: ");
Serial.println(digitalRead(TAC3));
break;
case '4':
digitalWrite(TAC4, !digitalRead(TAC4));
Serial.print("Tactilo 4: ");
Serial.println(digitalRead(TAC4));
break;
case '5':
digitalWrite(TAC5, !digitalRead(TAC5));
Serial.print("Tactilo 5: ");
Serial.println(digitalRead(TAC5));
break;
case '6':
digitalWrite(TAC6, !digitalRead(TAC6));
Serial.print("Tactilo 6: ");
Serial.println(digitalRead(TAC6));
break;
default:
break;
}
else
{
set_AllLow();
Serial.println("...End Tactile Session");
}
break;
case '1':
digitalWrite(TAC1, !digitalRead(TAC1));
Serial.print("Tactilo 1: ");
Serial.println(digitalRead(TAC1));
break;
case '2':
digitalWrite(TAC2, !digitalRead(TAC2));
Serial.print("Tactilo 2: ");
Serial.println(digitalRead(TAC2));
break;
case '3':
digitalWrite(TAC3, !digitalRead(TAC3));
Serial.print("Tactilo 3: ");
Serial.println(digitalRead(TAC3));
break;
case '4':
digitalWrite(TAC4, !digitalRead(TAC4));
Serial.print("Tactilo 4: ");
Serial.println(digitalRead(TAC4));
break;
case '5':
digitalWrite(TAC5, !digitalRead(TAC5));
Serial.print("Tactilo 5: ");
Serial.println(digitalRead(TAC5));
break;
case '6':
digitalWrite(TAC6, !digitalRead(TAC6));
Serial.print("Tactilo 6: ");
Serial.println(digitalRead(TAC6));
break;
default:
break;
}
}

Loading…
Cancel
Save