微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > ATmega16L驱动ILI9325/9328

ATmega16L驱动ILI9325/9328

时间:11-20 来源:互联网 点击:

  1. (c)**************************************************
  2. **SoutheastUniversity
  3. **--------------FileInfo-------------------------------------------------------------------------------
  4. **FileName:Delay.h
  5. **LastmodifiedDate:2012-03-23
  6. **LastVersion:1.0
  7. **Description:延时函数声明
  8. **------------------------------------------------------------------------------------------------------
  9. **CreatedBy:JianGe
  10. **Createddate:2012-03-23
  11. **Version:1.0
  12. **------------------------------------------------------------------------------------------------------*/
  13. #ifndefDELAY_H_H_
  14. #defineDELAY_H_H_
  15. #defineDELAY_USasm("nop");asm("nop");asm("nop");asm("nop");\
  16. asm("nop");asm("nop");asm("nop");asm("nop");
  17. externvoidDelay_nUS(unsignedintn);
  18. externvoidDelay_MS(void);
  19. externvoidDelay_nMS(unsignedintn);
  20. #endif
  21. /*********************************************************************************************************
  22. *EndOfFile*
  23. *********************************************************************************************************/

文件名:LCDDriver.h,LCD驱动函数和应用函数的声明

  1. /****************************************Copyright(c)**************************************************
  2. **SoutheastUniversity
  3. **--------------FileInfo-------------------------------------------------------------------------------
  4. **FileName:LCD_Driver.h
  5. **LastmodifiedDate:2012-03-24
  6. **LastVersion:1.0
  7. **Description:LCD驱动函数声明
  8. **------------------------------------------------------------------------------------------------------
  9. **CreatedBy:JianGe
  10. **Createddate:2012-03-24
  11. **Version:1.0
  12. **------------------------------------------------------------------------------------------------------*/
  13. #ifndefLCD_DRIVER_H_H_
  14. #defineLCD_DRIVER_H_H_
  15. #include"Type.h"
  16. #include
  17. externvoidLCD_Port_Init(void);
  18. externvoidLCD_WriteCmd(uint32regID);
  19. externvoidLCD_WriteData(uint32data);
  20. externvoidLCD_WriteReg(uint32regID,uint32regData);
  21. externunsignedintLCD_ReadReg(uint32regID);
  22. externvoidLCD_ILI9325_Init(void);
  23. externvoidLCD_SetWindow(unsignedintx0,unsignedintx1,unsignedinty0,unsignedinty1);
  24. externvoidLCD_ClearScreen(unsignedintcolor);
  25. externvoidLCD_Fill_Rectangle(unsignedintx0,unsignedinty0,unsignedintx1,unsignedinty1,unsignedintcolor);
  26. externunsignedcharGet_CharOffset(unsignedcharchar_data);
  27. externvoidSet_CharWindow(unsignedintlineNum,unsignedintrowNum);
  28. externvoidLCD_WriteChar(unsignedintlineNum,
  29. unsignedintrowNum,
  30. unsignedintcharColor,
  31. unsignedintbkColor,
  32. unsignedcharchChar)
  33. externvoidLCD_WriteString(unsignedcharlineNum,unsignedcharrowNum,
  34. unsignedintcharColor,
  35. unsignedintbkColor,
  36. unsignedchar*p_str)
  37. #endif
  38. /*********************************************************************************************************
  39. *EndOfFile*
  40. *********************************************************************************************************/

文件名:LCD_Font.h LCD字体库的声明

  1. /****************************************Copyright(c)**************************************************
  2. **SoutheastUniversity
  3. **--------------FileInfo-------------------------------------------------------------------------------
  4. **FileName:LCD_Font.h
  5. **LastmodifiedDate:2012-03-27
  6. **LastVersion:1.0
  7. **Description:LCD显示字符的字节表
  8. **------------------------------------------------------------------------------------------------------
  9. **CreatedBy:JianGe
  10. **Createddate:2012-03-27
  11. **Version:1.0
  12. **------------------------------------------------------------------------------------------------------*/
  13. #ifndefLCD_FONT_H_H_
  14. #defineLCD_FONT_H_H_
  15. //常用ASCII字符码表
  16. constunsignedcharLetter[][16]=
  17. {
  18. //第一栏从到?
  19. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"",0*/
  20. {0x00,0x00,0x00,0x10,0x10,0x10,0x1

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top