There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

RPI + LCD + Ruby (GPIO question)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RPI + LCD + Ruby (GPIO question)

by voorTech on Fri Nov 30, 2012 1:25 pm

Hello, obvious newbie here,

I've got my rpi working with an 16x2 lcd, using the Adafruit tutorial. It works with the Python code.

I want to achieve the same thing using Ruby. I already tracked down a library that allows me to
access the GPIO from Ruby - but then the questions start.

I also read through the tech docs on the display to get a better idea what commands is it expecting, but I'm pretty sure I'm lacking some very basic knowledge.

If anyone can point me to some documentation / tutorials / basic info, then that'll be much appreciated.

* First I have questions about the GPIO - I (think I) understand the basic concepts, from what I can tell they are basically just ports you turn off/on, but I want to read up on the specifics.
* Second question is about the display and how to send commands using the GPIO. I'm using a 4 bit command set, but it is not clear to me how if it is just a matter of setting the right pin, or if the display is expecting any other inputs.


Posts: 4
Joined: Wed Nov 07, 2012 6:14 pm

Re: RPI + LCD + Ruby (GPIO question)

by on Thu Feb 20, 2014 5:15 am

Dear Adafruit team,
My big congratulations to your Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi development. In my eyes it is the best available for our purpose and hence to that I bought one for our current prototype development.
We have developed a new high end desktop DLP printer and the plan was to integrate your interface in this application. We have serious commercial plans for this development and it will be launched on our recently launched webpage medio 2014. Your interface would be connected with a RasperryPi Rev2 in order to keep sales price low without compromising functionality.
Our programmer is profound of Ruby but not Python. As it seems so far you only offer Python code for your components. Is there any chance you could translate your interface code into Ruby in near future in order to make it more compatible to Ruby based projects. As it seems we are not the only ones running into this obstacle.
So far any display alternative seems like a second best solution to us but of course we are open minded for any of your proposals that make sense in a mass production.
Best regards,
Michael Lindemann Møller
Posts: 1
Joined: Thu Feb 20, 2014 5:08 am

Re: RPI + LCD + Ruby (GPIO question)

by adafruit_support_mike on Thu Feb 20, 2014 4:36 pm

Python is the default language for the Raspberry Pi, and the Python versions of our libraries exist for compatibility with the bulk of the software written for that platform. There are thousands of programming languages out there, and we have to focus the effort we spend porting and maintaining code.

All our code is Open Source though, so you're free to use it as a starting point for your own Ruby libraries if you choose.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.

Posts: 23542
Joined: Thu Feb 11, 2010 2:51 pm

Re: RPI + LCD + Ruby (GPIO question)

by Agash on Sat Feb 22, 2014 7:41 am

With a little bit of changing the libs from adafruit you could use this: to use the python libs in ruby :). But the best way still would be rewriting the hole lib in ruby, or just using python.
Posts: 3
Joined: Fri Feb 21, 2014 2:45 am

Please be positive and constructive with your questions and comments.