Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

adds/app/lcd

Explain how to use lcd driver.

 #include <sys/ifstream.h>
 #include <dev/lcd.h>

 //register LCD driver
 if (NutRegisterDevice(&devLcd0, 0xf000, 0)) {
 NutPrintFormat(0, "Registering lcd device failed.\r\n");
 } else {
 NutPrintFormat(0, "Registering lcd device sucess.\r\n");
 }
 
 //open LCD
 devLcd = NutDeviceOpen("lcd0");

 //print text to LCD display
 NutPrintFormat(devLcd, "EVBedu.net ver 1b0");

 //flush to send buffer
 NutPrintFlush(devLcd);


Generated on Thu Jan 30 22:30:43 2003 for EduNet by doxygen1.2.18