main.c
上传用户:hzhsqp
上传日期:2022-07-28
资源大小:37k
文件大小:1k
- #include <reg51.h>
- #include <3510i.h> //3510I头文件
- int main(void)
- {
- int i;
- //256色
- //0b11100000 0xe0 red
- //0b00011100 0x1c green
- //0b00000011 0x03 blue
- LCD_Initialize(); //LCD初始化
-
- LCD_ColorSet(0); //0为256色模式,1为4096色模式
- LCD_Clear(255,0); //清屏
- addset(28,0,67,39); //设置起止坐标,4个参数依次为开始X,开始Y,结束x,结束Y
- for(i=0;i<1600;i++)
- {
- send(img[i],1);
- }
-
- showhanzi(0,40,4,0xe0,255); //我
- showhanzi(14,40,5,0xe0,255); //是
- showhanzi(28,40,6,0xe0,255); //乞
- showhanzi(42,40,7,0xe0,255); //鹅
- showhanzi(56,40,8,0xe0,255); //我
- showhanzi(70,40,9,0xe0,255); //怕
- showhanzi(84,40,10,0xe0,255); //谁
-
- showhanzi(0,5,0,0x03,255); //雨
- showhanzi(14,5,1,0x03,255); //亭
- showhanzi(0,19,2,0x03,255); //电
- showhanzi(14,19,3,0x03,255); //子
-
- showzifustr(5,55,"NOKIA 3510I-",0x03,255); //显示字符串
- showzifu(90,55,Ver,0x03,255); //显示驱动版本
-
- showzifustr(68,5,"GOOD",0,255); //显示字符串
- showzifustr(75,17,"LCD",0,255); //显示字符串
-
- while(1)
- {
-
-
- delayms(1500);
- }
- }