Browse Source

Dateien hochladen nach „“

master
Tobias Baumann 2 years ago
parent
commit
87224c2a4f
1 changed files with 15 additions and 13 deletions
  1. 15
    13
      TactiloControllerPanda.ino

+ 15
- 13
TactiloControllerPanda.ino View File

@@ -73,18 +73,6 @@ void processSerialData(char SerialData)
{
switch(SerialData)
{
case '0':
if(digitalRead(LED) == LOW)
{
digitalWrite(LED, HIGH);
Serial.println("...Start Tactile Session");
}
else
{
set_AllLow();
Serial.println("...End Tactile Session");
}
break;
case '1':
digitalWrite(TAC1, !digitalRead(TAC1));
Serial.print("Tactilo 1: ");
@@ -115,7 +103,21 @@ void processSerialData(char SerialData)
Serial.print("Tactilo 6: ");
Serial.println(digitalRead(TAC6));
break;
case 'b':
if(digitalRead(LED) == LOW)
{
digitalWrite(LED, HIGH);
Serial.println("...Begin Tactile Session");
}
break;
case 'e':
if(digitalRead(LED) == HIGH)
{
digitalWrite(LED, LOW);
Serial.println("...End Tactile Session");
}
break;
default:
break;
}
}
}

Loading…
Cancel
Save