www.pudn.com > hello_led_0.rar > LCD.c


#include  
#include  
#include  
#include "system.h" 
#include "LCD.h" 
//------------------------------------------------------------------------- 
void LCD_Init() 
{ 
  lcd_write_cmd(LCD_16207_0_BASE,0x38);  
  usleep(2000); 
  lcd_write_cmd(LCD_16207_0_BASE,0x0C); 
  usleep(2000); 
  lcd_write_cmd(LCD_16207_0_BASE,0x01); 
  usleep(2000); 
  lcd_write_cmd(LCD_16207_0_BASE,0x06); 
  usleep(2000); 
  lcd_write_cmd(LCD_16207_0_BASE,0x80); 
  usleep(2000); 
} 
//------------------------------------------------------------------------- 
void LCD_Show_Text(char* Text) 
{ 
  int i; 
  for(i=0;i