2015-05-11 19:00:50 +00:00
|
|
|
# example program: managing the display
|
|
|
|
|
2015-04-20 19:35:47 +00:00
|
|
|
recipe main [
|
2015-04-21 00:40:25 +00:00
|
|
|
switch-to-display
|
2015-06-17 19:35:21 +00:00
|
|
|
print-character-to-display 97:literal, 1:literal/red
|
2015-05-13 17:03:26 +00:00
|
|
|
1:number/raw, 2:number/raw <- cursor-position-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-21 00:35:32 +00:00
|
|
|
clear-display
|
|
|
|
move-cursor-on-display 0:literal, 4:literal
|
|
|
|
print-character-to-display 98:literal
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-21 00:35:32 +00:00
|
|
|
move-cursor-on-display 0:literal, 0:literal
|
|
|
|
clear-line-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-29 04:28:34 +00:00
|
|
|
move-cursor-down-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-29 04:28:34 +00:00
|
|
|
move-cursor-right-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-29 04:28:34 +00:00
|
|
|
move-cursor-left-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-29 04:28:34 +00:00
|
|
|
move-cursor-up-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-04-21 00:40:25 +00:00
|
|
|
return-to-console
|
2015-04-20 19:35:47 +00:00
|
|
|
]
|