Results 1 to 1 of 1
-
08-25-2016, 02:54 PM #1
- Join Date
- Jul 2012
- Location
- Slovakia
- Posts
- 7
FSUIPC and Arduino - Serial problem
Hi folks, I work on MCP based on Arduino. I read/write offsets through FSUIPC by LUA script. Unfortunately I have one problem. I tried to explain it with parking brake. I have on push button. The code in arduino:
Code:... void pushButton(){ button = digitalRead(prkgbrake); if (button == HIGH && exbutton == LOW && millis() - last > ddelay){ Serial.write("brake:1\n") while( digitalRead(prkgbrake) == HIGH){ } } } ...
Code:.... x = com.open("COM3", 115200, 0) function offset(handle, str) ipc.log(str) end event.com(dev, 20, 1, 0, "readSerial")
Code:brake:1 brake:1 brake:1 brake:1
Code:brake:1 br ake:1 brake:1brake:1 brak e:1
Candid connections: Platform for casual relationships Live Women Prime Сasual Dating
Super Сasual Dating - Genuine...