|
|
@@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
} |