summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/include_lua/print.lua
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-09-27 10:19:30 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2020-09-27 15:57:34 +0000
commit018e0051bcea0ae1d6e1bda6b84940ce8508db61 (patch)
tree98065982d306ce7c4d44aecf0f37a523fe2c4a6f /apps/plugins/lua/include_lua/print.lua
parent201e9bcde8d0d222d71792dc577d9eced4f45ebc (diff)
downloadrockbox-018e0051bcea0ae1d6e1bda6b84940ce8508db61.tar.gz
rockbox-018e0051bcea0ae1d6e1bda6b84940ce8508db61.zip
lua playback example
cool little lua based audio player creates dynamic playlist of 10 mp3s found on device if no music loaded I had to limit the depth of search to 3 levels due to the recursive nature of the current dirbrowser functions this could be rectified with a bit more code fixed a bug in print.lua that kept scrolling text even after screen clear Change-Id: Ifd285332df41a409ecaeb1ea447ad15537b5d04c
Diffstat (limited to 'apps/plugins/lua/include_lua/print.lua')
-rw-r--r--apps/plugins/lua/include_lua/print.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/lua/include_lua/print.lua b/apps/plugins/lua/include_lua/print.lua
index 5ea0423f01..3e92a155ba 100644
--- a/apps/plugins/lua/include_lua/print.lua
+++ b/apps/plugins/lua/include_lua/print.lua
@@ -227,6 +227,7 @@ local _print = {} do
227 local o = get_settings(true) 227 local o = get_settings(true)
228 _LCD:clear(o.bg_pattern, o.x, o.y, o.x + o.width, o.y + o.height) 228 _LCD:clear(o.bg_pattern, o.x, o.y, o.x + o.width, o.y + o.height)
229 if o.autoupdate == true then rb.lcd_update() end 229 if o.autoupdate == true then rb.lcd_update() end
230 rb.lcd_scroll_stop()
230 set_line(1) 231 set_line(1)
231 for i=1, #col_buf do col_buf[i] = _NIL end 232 for i=1, #col_buf do col_buf[i] = _NIL end
232 s_lines = {} 233 s_lines = {}