From 21a00c85b5585b30ceff70b4acd9a62ee1fd8f44 Mon Sep 17 00:00:00 2001 From: Snorre Selmer Date: Thu, 30 Dec 2021 16:27:45 +0100 Subject: [PATCH] Added print controller script --- printer_countdown.ic10 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 printer_countdown.ic10 diff --git a/printer_countdown.ic10 b/printer_countdown.ic10 new file mode 100644 index 0000000..773d702 --- /dev/null +++ b/printer_countdown.ic10 @@ -0,0 +1,23 @@ +alias dial d0 +alias order_display d1 +alias remaining_display d2 +alias printer d3 + +alias order_count r0 +alias export_count r1 +alias remaining_count r2 + +move remaining_count 0 + +start: +yield +l order_count dial Setting +s order_display Setting order_count +l export_count printer ExportCount +sub remaining_count order_count export_count +s remaining_display Setting remaining_count +bgtz remaining_count start +s printer ClearMemory 1 +s dial Setting 0 +s printer Activate 0 +j start \ No newline at end of file