summaryrefslogtreecommitdiff
path: root/update_display.lua
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2019-12-17 13:01:41 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2019-12-17 13:01:41 -0500
commit3c4207c4aa55644c35600d7bdc2fcbba2b757824 (patch)
tree1f3e14d952bdb8c7bd51c7b2cfee46520bbcd820 /update_display.lua
downloadnodeMCU_rf_source_lmx2487-3c4207c4aa55644c35600d7bdc2fcbba2b757824.tar.gz
nodeMCU_rf_source_lmx2487-3c4207c4aa55644c35600d7bdc2fcbba2b757824.zip
init
Diffstat (limited to 'update_display.lua')
-rw-r--r--update_display.lua16
1 files changed, 16 insertions, 0 deletions
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()