From 3c4207c4aa55644c35600d7bdc2fcbba2b757824 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 17 Dec 2019 13:01:41 -0500 Subject: init --- update_display.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 update_display.lua (limited to 'update_display.lua') diff --git a/update_display.lua b/update_display.lua new file mode 100644 index 0000000..24fefdc --- /dev/null +++ b/update_display.lua @@ -0,0 +1,16 @@ +function update_display() + disp:clearBuffer() + disp:drawStr(0, 0*lineH, dstr) + disp:drawStr(0, 1*lineH, tstr) + disp:drawStr(0, 2*lineH, "test") + disp:sendBuffer() + + display_tmr:start() +end + +-- set up timer for display update +display_tmr=tmr.create() +display_tmr:register(display_update_interval, tmr.ALARM_SEMI, function() update_display() end) + +print("--- Starting Display Updates ---") +display_tmr:start() -- cgit v1.2.3