RPI + LCD + Ruby (GPIO question)

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

RPI + LCD + Ruby (GPIO question)

Postby voorTech » Fri Nov 30, 2012 12: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.

Thanks,

Rob.
voorTech
 
Posts: 1
Joined: Wed Nov 07, 2012 5:14 pm

Return to General Project help

Who is online

Users browsing this forum: adafruit_support_mike and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]