blob: 0b22fc6b3e2a729ab45c41216a88b5d465ba8f04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
if event.type == "train" then
local exp = "2"
local rec = get_line() or ""
local res = exp==rec and "PASS" or ("FAIL | %s"):format(rec)
digiline_send("lcd", res)
atc_send("OCBBWI+R;")
end
if event.type == "ext_int" then
if atc_id then
digiline_send("lcd", "...")
set_line("1")
atc_set_text_outside("LINE 1")
atc_send("S4")
end
end
|