2015-04-29 07:22:20 +00:00
|
|
|
# example of raw primitives operating on display
|
2015-04-20 19:35:47 +00:00
|
|
|
recipe main [
|
2015-04-21 00:40:25 +00:00
|
|
|
switch-to-display
|
2015-04-21 00:35:32 +00:00
|
|
|
print-character-to-display 97:literal
|
|
|
|
1:integer/raw, 2:integer/raw <- cursor-position-on-display
|
|
|
|
wait-for-key-from-keyboard
|
|
|
|
clear-display
|
|
|
|
move-cursor-on-display 0:literal, 4:literal
|
|
|
|
print-character-to-display 98:literal
|
|
|
|
wait-for-key-from-keyboard
|
|
|
|
move-cursor-on-display 0:literal, 0:literal
|
|
|
|
clear-line-on-display
|
2015-04-20 23:42:35 +00:00
|
|
|
wait-for-key-from-keyboard
|
2015-04-29 04:28:34 +00:00
|
|
|
move-cursor-down-on-display
|
|
|
|
wait-for-key-from-keyboard
|
|
|
|
move-cursor-right-on-display
|
|
|
|
wait-for-key-from-keyboard
|
|
|
|
move-cursor-left-on-display
|
|
|
|
wait-for-key-from-keyboard
|
|
|
|
move-cursor-up-on-display
|
|
|
|
wait-for-key-from-keyboard
|
2015-04-21 00:40:25 +00:00
|
|
|
return-to-console
|
2015-04-20 19:35:47 +00:00
|
|
|
]
|