Toolkit:SDCC 8051 Development System
Location:/bipom/devtools/SDCC/examples/lcd/simple
#include <stdio.h> #include <stdarg.h> #include <8052.h> #include <mcs51\bipomlib\types.h> #include <mcs51\bipomlib\bipomlib.h> #include <mcs51\bipomlib\lcd.h> void main() { // Initialize the serial port serinit(CBR_19200); puts( "\rSDCC LCD Test" ); // Initialize the LCD LCD_Init(); // Write a simple message to the LCD LCD_SetTopLine(); LCD_Write("TOP LINE"); LCD_SetBottomLine(); LCD_Write("BOTTOM LINE"); puts( "\rDone" ); while(1); }