深圳市川航电子科技有限公司
联系人:常东
电话:0755-29035962
直线:15112585657
传真:0755-29035961
QQ:1343115013
MSN:xingyuncaocd@hotmail.com
邮箱:chuanhanglcm@163.com
网址:http://www.szchuanhang.com
程序附页 #include #include #include
#define uchar unsigned char #define uint unsigned int uchar temp; sbit CD =P3^0; sbit WR0 =P3^1; sbit RD0 =P3^2; sbit CS =P3^3; sbit REST=P3^6; sbit BUSY=P3^4; sbit BINT=P3^5;
#define lcd_data P1
//================================================================
void main() { uchar temp; init_cpu(); init_lcd(); LCD_ON(); LCD_Clear(); while(1)
{
LCD_Test();
disp_Graphic2(); DELAY_CLS();
disp_Graphic1(); DELAY_CLS();
//*****************字符字变粗变细*****************************//
LCD_Text(); wr_cmd(0x10); //[10H] 光标不显示不闪烁 文字旋转90关闭 wr_data(0x10); //粗体 LCD_GotoXY(0, 0); SendStr("深圳市川航电子科技有限公司");
wr_cmd(0x10); //[10H] 光标不显示不闪烁 文字旋转90关闭 wr_data(0x00); //粗体变常规
LCD_GotoXY(0, 60); SendStr("深圳市川航电子科技有限公司"); DELAY_CLS();
//***********字符在4边框上从0-90度旋转(首尾相连)*************//
LCD_Text(); //0度 LCD_GotoXY(0, 0); SendStr("深圳市川航电子科技有限公司"); DELAY_CLS();
LCD_Text(); //90度 wr_cmd(0x10); //[10H] 光标不显示不闪烁 文字旋转90 wr_data(0x08); wr_cmd(0x01); //[10H] SEG:0~319 COM:239~0 wr_data(0x05); LCD_GotoXY(0, 0); SendStr("深圳市川航电子科技有限公司"); DELAY_CLS();
LCD_Text(); //180度 wr_cmd(0x10); //[10H] 光标不显示不闪烁 文字旋转90关闭 wr_data(0x00); wr_cmd(0x01); //[10H] SEG:319~0 COM:239~0 wr_data(0x07); LCD_GotoXY(0, 0); SendStr("深圳市川航电子科技有限公司"); DELAY_CLS();
LCD_Text(); //270度 wr_cmd(0x10); //[10H] 光标不显示不闪烁 文字旋转90 wr_data(0x08); wr_cmd(0x01); //[10H] SEG:319~0 COM:0~239 wr_data(0x06); LCD_GotoXY(0, 0); SendStr("深圳市川航电子科技有限公司"); DELAY_CLS();
} }
注:以上程序并未完全付上,具体子程序请与店主联系,谢谢! |