C library for Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi

Talk about Adafruit Raspberry Pi® accessories!

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

C library for Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi

Postby JanBlomqvist » Mon Dec 31, 2012 4:12 am

Hi, I wonder if there are any C libraries or any C code for the Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi. The software on the Git hub is just Python.

/Jan
JanBlomqvist
 
Posts: 2
Joined: Mon Dec 31, 2012 3:56 am

Re: C library for Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi

Postby adafruit » Wed Jan 02, 2013 8:08 pm

At this time we have only Python - there's a lot of dependencies that would be required to make it work in C, its not an easy task to port!
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: C library for Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi

Postby FunkyELF » Thu Jan 03, 2013 10:35 am

JanBlomqvist wrote:Hi, I wonder if there are any C libraries or any C code for the Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi. The software on the Git hub is just Python.

/Jan


If you want to use it from C... calling Python code from C is pretty easy.
You'd just initialize a Python interpreter, instantiate a Adafruit_CharLCDPlate object. Keep it global for simplicity.
Then you can write C function wrappers that call the clear, message, and backlight functions on the the Adafruit_CharLCDPlate object.

Not a native C library, but if you want to be able to control it via C code, that'll work.
FunkyELF
 
Posts: 4
Joined: Thu Jan 03, 2013 10:15 am

Re: C library for Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi

Postby JanBlomqvist » Fri Jan 04, 2013 6:01 am

FunkyELF wrote:If you want to use it from C... calling Python code from C is pretty easy.
You'd just initialize a Python interpreter, instantiate a Adafruit_CharLCDPlate object. Keep it global for simplicity.
Then you can write C function wrappers that call the clear, message, and backlight functions on the the Adafruit_CharLCDPlate object.

Not a native C library, but if you want to be able to control it via C code, that'll work.

Thanks for the idea, but I had honestly hoped for complete C libs, anyway, I'll take this in account when I plan my coding, I need to think things over before I jump all over it.

/Jan
JanBlomqvist
 
Posts: 2
Joined: Mon Dec 31, 2012 3:56 am


Return to Adafruit Raspberry Pi® accessories

Who is online

Users browsing this forum: No registered users and 2 guests

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


New Products [108]

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[31]


 
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[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
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]