Giter Site home page Giter Site logo

lua-lcdproc's People

Contributors

denpamusic avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

lua-lcdproc's Issues

Three questions

hello,my english is poor!
Using your sample and readme code now, I find the following problems
1:README.md
"local lcd = LCDproc("localhost", 13666)" Need to be changed to "local lcd = LCDproc.new("localhost", 13666) "
2:README.md
if i use debug “local lcd = LCDproc.new("localhost", 13666, { timeout = 3, debug = true })”
There will be problems
err log:

hello
<<< connect LCDproc 0.5.9 protocol 0.3 lcd wid 21 hgt 8 cellwid 6 cellhgt 8
screen_add my_screen
<<< success
widget_add my_screen one title
<<< success
widget_set my_screen one {Title Text}
<<< success
widget_add my_screen two string
<<< listen my_screen
widget_add my_screen three string
<<< success
widget_set my_screen three 1 3 {Second Line Text}
<<< success
widget_add my_screen four string
<<< success
widget_set my_screen four 1 4 {Third Line Text}
<<< success
<<< [poll] success
<<< [poll] ignore my_screen
<<< [poll] listen my_screen
lua: r.lua:17: attempt to index field 'two' (a nil value)
stack traceback:
r.lua:17: in function 'fn'
/usr/lib/lua/lcdproc.lua:27: in function 'do_events'
/usr/lib/lua/lcdproc.lua:250: in function 'poll'
r.lua:26: in main chunk
[C]: ?
3: I try to use "Menu:add_action (id, text, result, hidden, prev)",but something's wrong
err log:
menu_add_item "" checkbox_id checkbox -value on -allow_gray true -text {checkbox_txt}
<<< success
Item:init-hello
menu_add_item "" menu_leave_id menu -text {menu_leave_txt}
<<< success
table: 0x4ffc20 table: 0x5038e0 leave_y yes false nil
Item:init-hello
lua: /usr/lib/lua/lcdproc/menu.lua:66: attempt to call method 'create' (a nil value)
stack traceback:
/usr/lib/lua/lcdproc/menu.lua:66: in function </usr/lib/lua/lcdproc/menu.lua:63>
(tail call): ?
/usr/lib/lua/lcdproc/menu.lua:724: in function 'add_action'
demo2.lua:24: in main chunk
[C]: ?
We look forward to your reply!QAQ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.