#include "led.h"
#include "delay.h"
#include "sys.h"
#include "usart.h"
#include "lcd.h"
#include "key.h"
int main(void)
{
u8 lcd_id[12];
delay_init();
uart_init(9600);
LED_Init();
LCD_Init();
KEY_Init();
sprintf((char*)lcd_id,"LCD ID:%04X",lcddev.id);
while(1)
{
BACK_COLOR=WHITE;
POINT_COLOR = RED;
LCD_DrawLine(40, 70, 320,70);
LCD_DrawLine(40, 140, 320,140);
LCD_DrawLine(40, 210, 320,240);
LCD_DrawLine(40, 280, 320,280);
LCD_DrawLine(40, 0, 40,280);
LCD_DrawLine(110, 0,110,280);
LCD_DrawLine(180, 0, 180,280);
LCD_DrawLine(250, 0, 250,280);
LCD_ShowString(75, 35,200,200,24, '+'); //¼Ó¼õ³Ë³ý
LCD_ShowString(75, 105,200,200,24, '-');
LCD_ShowString(75, 175,200,200,24, '*');
LCD_ShowString(75, 245, 200,200,24,'/');
LCD_ShowString(285, 245, 200,200,24,'='); //µÈÓÚ
LCD_ShowString(215, 245, 200,200,24,'C'); //Çå³ýÏÔʾÀ¸
//0~9
LCD_ShowString(295,35,200,200,24, '9');
LCD_ShowString(225, 35,200,200,24, '8');
LCD_ShowString(155, 35,200,200,24, '7');
LCD_ShowString(295, 105,200,200,24, '6');
LCD_ShowString(225, 105, 200,200,24,'5');
LCD_ShowString(155, 105, 200,200,24,'4');
LCD_ShowString(295, 175, 200,200,24,'3');
LCD_ShowString(225, 175,200,200,24, '2');
LCD_ShowString(155, 175, 200,200,24,'1');
LCD_ShowString(155, 245,200,200,24, '0');
//¼ÆËãÀ¸
LCD_DrawLine(0, 380,0, 700);
LCD_DrawLine(0, 430, 0,750);
}
}
错误提示main.c(32): error: #167: argument of type "int" is incompatible with parameter of type "u8 *" |