Add LED IPC

This commit is contained in:
xpeng
2022-07-29 18:49:56 +02:00
parent 54c392fb39
commit 9919fabcf6
8 changed files with 235 additions and 89 deletions
+1 -1
View File
@@ -19,6 +19,7 @@ public class Serial : MonoBehaviour
private Thread _touchThread;
private Queue _touchQueue;
static SerialPort ComL = new SerialPort ("COM5", 115200);
static SerialPort ComR = new SerialPort ("COM6", 115200);
@@ -122,7 +123,6 @@ public class Serial : MonoBehaviour
var data = Serial.ReadExisting();
SendResp(Serial, side, data);
}
}
void SendResp(SerialPort Serial, int side, string data)
{