Kód: Vybrať všetko
...
void pushButton(){
button = digitalRead(prkgbrake);
if (button == HIGH && exbutton == LOW && millis() - last > ddelay){
Serial.write("brake:1\n")
while( digitalRead(prkgbrake) == HIGH){
}
}
}
...
Kód: Vybrať všetko
....
x = com.open("COM3", 115200, 0)
function offset(handle, str)
ipc.log(str)
end
event.com(dev, 20, 1, 0, "readSerial") Kód: Vybrať všetko
brake:1
brake:1
brake:1
brake:1Kód: Vybrať všetko
brake:1
br
ake:1
brake:1brake:1
brak
e:1