#include <16f877a>
#fuses hs, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#include <flex_lcd.c>
//============================
void main()
{
output_high(lcd_power);
delay_ms(300);
lcd_init();
while(1)
{
lcd_putc('\f');
delay_ms(500);
lcd_putc("Hello World\n");
lcd_putc("This is Line two");
delay_ms(500);
}
}
/ These pins are for the Microchip PicDem2-Plus board,
// which is what I used to test the driver. Change these
// pins to fit your own board.
#define LCD_DB4 PIN_D0
#define LCD_DB5 PIN_D1
#define LCD_DB6 PIN_D2
#define LCD_DB7 PIN_D3
#define LCD_E PIN_D6
#define LCD_RS PIN_D4
#define LCD_RW PIN_D5
#define LCD_POWER PIN_D7
LCD Module 16 Char x 2 Row
LCD1
1. FEMA Electronics CG-1621-SGR1C
2. P-Tec Corp PCOG1602B-GNFD-C1RCD (RCD Industries)
3. United Radiant UMSH-3112JNV-1G
Return to PIC® MCU General Discussion
Users browsing this forum: No registered users and 0 guests