2015-05-11 19:00:50 +00:00
|
|
|
# example program: managing the display
|
|
|
|
|
2016-03-08 09:30:14 +00:00
|
|
|
def main [
|
2015-06-22 06:53:17 +00:00
|
|
|
open-console
|
2017-05-18 17:09:17 +00:00
|
|
|
clear-display
|
2015-07-28 21:33:22 +00:00
|
|
|
print-character-to-display 97, 1/red, 2/green
|
2016-09-17 07:43:13 +00:00
|
|
|
1:num/raw, 2:num/raw <- cursor-position-on-display
|
2015-06-22 06:37:49 +00:00
|
|
|
wait-for-some-interaction
|
2017-11-10 08:47:45 +00:00
|
|
|
clear-line-on-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
|
|
|
]
|