![]() So if you know how to write a program in pretty much any language you’ll be able to pick up lua in minutes. A good start would be here: To be honest I didn’t know anything about lua before I started to write a driver, like all languages I tend to hack my way through and look at examples to learn the formatting. One thing I’m not going to cover is how to write programs in lua, there is plenty on the Internet on how to do this. ![]() The driver can receive CR,LF,CR+LF and null terminated data strings. It is possible to send data to serial port in ASCII and HEX format and to receive data into a string variable. ![]() ![]() The driver provides bidirectional communication with any serial device. Once you can do this, then it going to be easy to add everything else piece by piece. The majority of the stuff in here is how to create a program in Driver Editor, upload it with composer and then run it to see the output. Your first program Like all programming books teach, we’ll do the same – start with a basic hello world program.
0 Comments
Leave a Reply. |