Start a new topic

Ruby Nextion Library

I've started a Nextion parsing library in ruby located here: https://github.com/abduct/nextion-ruby I plan to have support for user defined callbacks (sort of implemented) where a user can define what actions are to be taken when a specific message is parsed. Messages will also be sent in a tidy easy to use way. At the moment it currently has support for all messages sent from the screen (presumably if the wiki docs are complete) and callback functionality. In the git the readme provides example output and the client.rb file shows how the callback system will be implemented. And once again this library is no where near usable. There are many little things wrong with it that need to be refactored. I will work on it when I get time or if there is enough interest in it I will put more time into it, although as of right now I have larger projects of more importance that need to be finished.

Also how do you format posts on this site. Everything becomes blogs of text for me.

Is it html?
Never mind figured out how to format posts. To bad I can't edit or delete these things

-----------------------------------------------

I've started a Nextion parsing library in ruby located here: https://github.com/abduct/nextion-ruby

I plan to have support for user defined callbacks (sort of implemented) where a user can define what actions are to be taken when a specific message is parsed. Messages will also be sent in a tidy easy to use way.

At the moment it currently has support for all messages sent from the screen (presumably if the wiki docs are complete) and callback functionality.

In the git the readme provides example output and the client.rb file shows how the callback system will be implemented.

And once again this library is no where near usable. There are many little things wrong with it that need to be refactored.

1 person likes this

You can even insert links in your posts, by clicking on this icon :-)


@Raphaël what browser are you using? Firefox doesn't render this forum properly for instance I don't have that menu and all divs and input boxes are all randomly sized and don't line up. I thought it was a bug with the site.

@abduct

I'm using Chrome and Internet Explorer.

https://github.com/itead/ITEADLIB_Arduino_Nextion


New Library,  support defined callbacks now.

It's the New Editor come? I have 21.

My Norton virus protect stop Last Editor download..

Best regard

Per

I heard that is updated at the end of July... It will support new control components


But I am not sure when it will come out.



what means "defined callbacks" ?
is this related with "Asynchronous touch events" discussed in some other topics here ?


 

@Dirk

http://docs.iteadstudio.com/ITEADLIB_Arduino_Nextion/annotated.html


http://docs.iteadstudio.com/ITEADLIB_Arduino_Nextion/class_nex_button.html

@FreeZinG that's nice that they have callbacks now, but they still are limiting the code to adruino which is kind of lame.

@Dirk defined callbacks in my system are a way for a user to supply their own code which is to be ran when a specific event/message is parsed. At the moment it is blocking, but with a few line changes I could thread it to make it async which would allow the called callbacks run independently of the parsing code.

As for this library I can't invest much time into it for at least another week or two as other projects have higher importance. Although I am eventually going to get something working because unless ITEAD releases a platform independent library this will need to be done for using the screens on any platform that supports ruby (mips, x86, x86-64, arm). Maybe if we raise enough awareness that locking the library to a handful of platforms is a bad idea I wont need to write this :)

1 person likes this
Login or Signup to post a comment