• 大小: 240KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-04-05
  • 语言: 其他
  • 标签: 160x160  uc1698  

资源简介

UC1698驱动160X160液晶屏驱动程序,内有打点划线等函数,亲测可用!

资源截图

代码片段和文件信息

//================================================================================================
// 文件名称:  main.c 
// 芯片类型: STM32103RBT6                                            
// 开发软件: Keil v3.90 Windows XP2 
// 开发时间: 2010年01月05日                                                               
// 程序功能: 在STM32上移植ZLG_GUI来驱动使用UC1698芯片的160160单色点阵模块,该模块广泛应用于电力载波终端 
// 编写人员: 崔超                                                                       
// 联系方式: 13686036830  soulcoffee@sohu.com   
//================================================================================================ 

//========================================= 头文件 ================================================ 
#include “config.h“

//======================================== 变量定义 =============================================== 

// 一个单色图标的数据,宽度x高度=40x40
uint8 const ICO1[] = 
{
0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000xFF0x000x000x000x070x000xE00x000x000x18
0x000x180x000x000x300x000x0C0x000x000x400x000x020x000x000x800x00
0x010x000x010x000x000x000x800x030x000x000x000xC00x020x010x810x80
0x400x040x030xC30xC00x200x040x030xC30xC00x200x040x030xC30xC00x20
0x080x030xC30xC00x100x080x030xC30xC00x100x080x010x810x800x100x08
0x080x000x100x100x080x080x000x100x100x080x100x000x080x100x080xF0
0x000x0F0x100x080x080x000x100x100x040x040x000x200x200x040x060x00
0x600x200x040x030x810xC00x200x020x010x7E0x800x400x030x000x810x00
0xC00x010x000x420x000x800x000x800x3C0x010x000x000x400x000x020x00
0x000x300x000x0C0x000x000x180x000x180x000x000x070x000xE00x000x00
0x000xFF0x000x000x000x000x000x000x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x00
};

// 样条曲线的4个端点
PointXY log_pin[] = { {80  30}
                      {120 60}
                      {160 30}
                      {200 60}
                    };

// 封闭多边形的各个顶点                    
uint32  const poly6[] = {150110 17080 18095 20085 230110 150110};
                      

uint8  str[256];
uint32 Time_count = 0;
uint32 rr;
void delay()
{
  Delay_ms(1);
}  

WINDOWS Win_Main[] = {00160160“ZLG_GUI““Programme by CuiChao“ }  ;

MMENU  Menu_Main = {Win_Main 5{“File““Edit““View““Tool““Help“ } };

SMENU  Menu_Slave = { Win_Main05{“New““Open““Close““Save““Exit“}0{delaydelaydelaydelaydelay } } ;


//============================================================================= 
//函 数 名: main() 
//功    能: C入口函数  
//入口参数: 无
//出口参数: 无
//返 回 值: 无
//============================================================================= 
int main (void)
{  
uint32 Time_count_old = 100;


   TargetInit(); /* 应用程序初始化   */ 

GUI_Initialize(); // 初始化LCM 

   GUI_SetColor(1 0); // 设置前景色及背景色


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-03-04 14:26  ourdev_523183\
     目录           0  2010-01-05 22:10  ourdev_523183\KEIL_STM32\
     目录           0  2015-03-04 14:26  ourdev_523183\KEIL_STM32\APP\
     目录           0  2015-03-04 14:26  ourdev_523183\KEIL_STM32\APP\LCD12864\
     文件       15028  2009-10-21 22:34  ourdev_523183\KEIL_STM32\APP\LCD12864\ASCII.c
     文件       43606  2009-10-14 14:11  ourdev_523183\KEIL_STM32\APP\LCD12864\Chinese.C
     文件       45327  2010-01-03 11:20  ourdev_523183\KEIL_STM32\APP\LCD12864\LcdDriver.c
     文件        3384  2010-01-02 21:52  ourdev_523183\KEIL_STM32\APP\LCD12864\LcdDriver.h
     目录           0  2015-03-04 14:26  ourdev_523183\KEIL_STM32\APP\LCD160160\
     文件       42404  2010-01-05 00:02  ourdev_523183\KEIL_STM32\APP\LCD160160\LCD160160.C
     文件         155  2010-01-03 13:39  ourdev_523183\KEIL_STM32\APP\LCD160160\LCD160160.H
     文件        2036  2008-04-03 10:39  ourdev_523183\KEIL_STM32\APP\STM32DBG.ini
     目录           0  2015-03-04 14:26  ourdev_523183\KEIL_STM32\APP\Target\
     文件        9519  2008-11-16 11:33  ourdev_523183\KEIL_STM32\APP\Target\cortexm3.s
     文件       15394  2009-03-11 18:35  ourdev_523183\KEIL_STM32\APP\Target\startup.s
     文件        4947  2009-08-07 19:34  ourdev_523183\KEIL_STM32\APP\Target\target.c
     文件        1766  2009-03-11 18:35  ourdev_523183\KEIL_STM32\APP\Target\target.h
     目录           0  2015-03-04 14:26  ourdev_523183\KEIL_STM32\APP\Timer\
     文件        3321  2010-01-05 21:53  ourdev_523183\KEIL_STM32\APP\Timer\Timer.c
     文件        1844  2010-01-03 11:55  ourdev_523183\KEIL_STM32\APP\Timer\Timer.h
     目录           0  2015-03-04 14:26  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\
     文件        7899  2010-01-05 00:08  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\ConvertColor.c
     文件        5674  2004-03-11 16:41  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\ConvertColor.h
     文件       17529  2004-03-11 19:31  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT24_32.C
     文件         952  2010-01-04 23:26  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT24_32.H
     文件       15349  2004-03-11 19:30  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT5_7.C
     文件        1935  2010-01-04 23:26  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT5_7.H
     文件       15756  2004-03-11 19:30  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT8_8.C
     文件        1988  2010-01-04 23:26  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT8_8.H
     文件        6305  2010-01-04 23:26  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\FONT_MACRO.H
     文件       54440  2004-06-18 16:59  ourdev_523183\KEIL_STM32\APP\ZLG_GUI\GUI_BASIC.C
............此处省略75个文件信息

评论

共有 条评论