How do I program an LCD using Propeller C?
I have looked around a little on Learn.Parallax.com, and can't find a way to program an LCD using Propeller C. I have found the place that you go to program an LCD, but it doesn't contain anything about programming it in C.
Can anybody here guide me in the right direction?
Thanks,
ValeT
Can anybody here guide me in the right direction?
Thanks,
ValeT

Comments
I have now checked and know it is serial, so I will just use the serial library to communicate with it.
For those using parallel character LCDs (aka, the HD44780 standard), feel free to use PropWare's HD44780 object! It makes using them really simple and easy!
Class documentation: http://david.zemon.name/PropWare/classPropWare_1_1HD44780.html
Example program: http://david.zemon.name/PropWare/HD44780__Demo_8cpp_source.html
#include <PropWare/PropWare.h> #include <PropWare/printer.h> #include <PropWare/hd44780.h> // Control pins const PropWare::Port::Mask RS = PropWare::Port::P16; const PropWare::Port::Mask RW = PropWare::Port::P17; const PropWare::Port::Mask EN = PropWare::Port::P18; // Data pins const PropWare::Port::Mask FIRST_DATA_PIN = PropWare::Port::P19; const PropWare::HD44780::Bitmode BITMODE = PropWare::HD44780::BM_8; const PropWare::HD44780::Dimensions DIMENSIONS = PropWare::HD44780::DIM_16x2; // Main function int main () { // Create and initialize our LCD object PropWare::HD44780 lcd; lcd.start(FIRST_DATA_PIN, RS, RW, EN, BITMODE, DIMENSIONS); // Create a printer for easy, formatted writing to the LCD PropWare::Printer lcdPrinter(&lcd); // Print to the LCD (exactly 32 characters so that we fill up both lines) lcdPrinter.printf("%u %s%d 0x%07X", 123456789, "Hello!", -12345, 0xabcdef); return 0; }