Code: Select all
while true {
input:=arduino_read()
if (input = "610D0A")
Send {a down}
else if (input = "410D0A")
Send {a up}
else if (input = "620D0A")
Send {s down}
else if (input = "420D0A")
Send {s up}
else if (input = "630D0A")
Send {d down}
else if (input = "430D0A")
Send {d up}
else if (input = "640D0A")
Send {f down}
else if (input = "440D0A")
Send {f up}
else if (input = "650D0A")
Send {g down}
else if (input = "450D0A")
Send {g up}
else if (input = "660D0A")
Send {Up down}
else if (input = "460D0A")
Send {Up up}
else if (input = "670D0A")
Send {Down down}
else if (input = "470D0A")
Send {Down up}
else if (input = "690D0A")
Send {h down}
else if (input = "490D0A")
Send {h up}
else if (input = "680D0A")
Send {Enter down}
else if (input = "480D0A")
Send {Enter up}
}