Page 1 of 1

Ruby Gem for controlling GLK series of displays

Posted: Sat Aug 16, 2008 12:46 pm
by njh
Hello,

I have been working on a gem for the Ruby programming language to control the GLK series of Matrix Orbital displays.
Here is a quick example:

require 'matrixorbital/glk'

glk = MatrixOrbital::GLK.new('/dev/ttyUSB0')
glk.clear_screen
glk.backlight = true
glk.brightness = 128
glk.puts "Hello World!"


A subset of the commands available are currently supported, but I hope to support most of the commands in time, including font and bitmap upload.


Project homepage is here:
http://rubyforge.org/projects/matrixorbital

More examples in subversion here:
http://matrixorbital.rubyforge.org/svn/trunk/examples/

API Documentation is here:
http://matrixorbital.rubyforge.org/

I have tested it with a GLK19264-7T-1U and GLK24064-25 display under Debian Linux and ruby 1.8.5.


nick.

Posted: Mon Aug 18, 2008 9:46 am
by Clark
Hi Nick,

I appreciate that code, as I'm sure many of our developers will as well; I'll be sure to keep an eye on your project, and refer other users as applicable.

If you'd like, I have a couple things to keep in mind as you move forward though.

Fist up, our upload protocol and some commands have changed from previous versions to the new. Of particular note will be the GLK12232-25-SM from revision 1.4 to 2.0. Check out the manuals for more info.

Second, the newer protocol itself as written in some manuals will be slightly off. Check out this post for the updated version.

As always, if you do run into any trouble, just post up here; you're creating an excellent tool for many developers, and we'd love to help you get it right.

Thanks,
~Troy