带T6963C控制器的240128液晶图形显示C程序

来源:百度知道 编辑:UC知道 时间:2024/05/29 15:42:42
用51单片机来显示带T6963C控制器的JHD240128D液晶图形的单C程序
我想弄个奥运5环的图 程序该怎么编

希望以下代码能帮助你

#include "absacc.h"
#include "math.h"
#include "ASCII816.h" //字符点阵库 0x20--0x7F
#include "HZTable.h" //汉字点阵库(自做)
#include "menu.h" //汉字点阵库(自做)

//set following data by user according to LCD
#define ComPort 0xB101
#define DataPort 0xB000
#define GraphAddr 0x0000 //head of graph

//以8*8字符计算,显示屏横向、纵向可以显示的字符个数
//以240*128为例:
#define LineChar 30 //一行16个字符(8*8)
#define ColumnChar 16 //总共16列

//指令,数据 读写状态检查
#define RWCheck() { unsigned char sta; do{ sta=XBYTE[ComPort] & 0x03; } while(sta!=0x03); }
//数据自动读 状态检查
#define AutoRCheck() { unsigned char sta; do{ sta=XBYTE[ComPort] & 0x04; } while(sta!=0x04); }
//数据自动写 状态检查
#define AutoWCheck() { unsigned char sta; do{ sta=XBYTE[ComPort] & 0x08; } while(sta!=0x08); }

/*------输入/出函数,与T6963通讯------------------------------------------------*/
/*------------------