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()