Datasheet
Jon Waddington
89
keyName_in(i)
else
rcName_in(i)
Room_in(j)
Type_in(j)
Address_in(j)
waitcnt (cnt + 50_000_000)
{{test input}}
text.out($00)
showdate(0, 0)
showtime(35, 0)
text.str(string(13,13," "))
repeat i from (j*10) to ((j*10) + 9)
if name[i]
text.out(name[i])
else
i := ((j*10) + 9)
text.str(string(13," "))
case room[j]
0 : text.str(string("Bedroom"))
1 : text.str(string("Living Room"))
2 : text.str(string("Dining Room"))
3 : text.str(string("Kitchen"))
text.str(string(13," "))
case type[j]
0 : text.str(string("Appliance"))
1 : text.str(string("Lamp"))
text.str(string(13," A"))
text.dec(dvc[j])
waitcnt(cnt + 150_000_000)
dvcnum++
backup
PRI EditDevice | dp, i, j ''dp' - device pointer, 'i' points to the byte of 'name' to display, 'j' limits the repeat for
the amount of devices
{{Method allows user to remove device}}
dp := 0
text.out($00)
showdate(0, 0)
showtime(35, 0)
text.str(string(" Edit Device"))
repeat j from 0 to (dvcnum - 1)
text.str(string(13," "))
repeat i from (dp*10) to ((dp*10) + 9)
if name[i]










