2015-05-11 19:00:50 +00:00
|
|
|
# example program: managing the display
|
|
|
|
|
2015-04-20 19:35:47 +00:00
|
|
|
recipe main [
|
2015-06-22 06:53:17 +00:00
|
|
|
open-console
|
2015-07-28 21:33:22 +00:00
|
|
|
print-character-to-display 97, 1/red, 2/green
|
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
|
2015-07-28 21:33:22 +00:00
|
|
|
move-cursor-on-display 0, 4
|
|
|
|
print-character-to-display 98
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2015-07-28 21:33:22 +00:00
|
|
|
move-cursor-on-display 0, 0
|
2015-04-21 00:35:32 +00:00
|
|
|
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-06-22 06:53:17 +00:00
|
|
|
close-console
|
2015-04-20 19:35:47 +00:00
|
|
|
]
|