开发工具:
文件大小: 114kb
下载次数: 0
上传时间: 2019-10-20
详细说明:建立用户的LCD字符显示pdf,建立用户的LCD字符显示★★曹责卡★★★★曲责★货出责★★★★★责卡责谢★★★南曲★★责卡头计出★★肃
ca char c
2001. Z-World
Example of using user-defined LcD characters (written
for the oP6600/6700 Intell1com LCD
The standard controller on all LCDs used by z-World
allows the user to create up to eight custom
characters in the character-generation RAM on
the LCD controller. This program provides a
function to define the characters and an example
of their use
After they are defined, the characters can be
accessed as ascii values o through 7
★密★★曹青★肃★出★★★青★曲责责由青★★★南责齿★出出★★南★
#use CUSTOMLCD. LIB / library containing d1 spDefinechar
害★责★★★食★责★出责★★★★★★责★出责食责★
Character definitions
e characters are defined in 8-byte arrays, one
byte per line. The character size is actually
only 5x8, so the three highest bits in each byte
should be set to zero. lso note that the bot tom
line is normally used by the cursor and should
probably not be used unless the cursor is turned off
const char box [8]=i
0X00,
0x1F,
#####
0x11,
/#
0X11,
#
0x11,
0x1F,
#####
0x00,
0x00
curSor IOw
const char xbox [8]
0X00,
0x1F,
/####
0x1B,
/##,##
0x15,
/#.#·#
0x1B,
/##,##
0x1F,
#####
0x00
0X00
CurSor row
const char plug [8]=[
0x0A,
//.##
0X0A,
AxlE
//#####
0X11
/#
0x11,
//#
0x0E,
//、###
0X04
0X04
#
cursor row
const char battery [8]
OxO
###
0x1F,
//#####
0X11
//#
#
0X11
#
#
0X1F,
/#####
0x1F,
//#####
axlE
//#####
axlE
//# cursor row
const char white circle[8] =[
0X00,
0X0E,
//、###
0X11,
#
0x11,
//#
0X11
//#
#
0X0E,
//,###
0X00
0X00
Cursor LOW
const char black circle [8]=[
0X00
0x0E,
//,###
0x1F,
#####
0x1F,
/#####
axlE
/#####
0X0E,
/,###
0X00
0X00
cursor lOW
const char smiley [8] =[
0X00
0X0A,
0X00
0X04
#
0x11,
//#
0x0E,
0X00
0X00
Cursor row
const char frowny [8]
0x00,
0x0A,
##
0x00,
0x04,
//
#
0x00,
0x0E,
###
0X11
//#
0x00
cursor rOw
★★★★★★责出★青★★★★★卡★★齿★★★★卡责★★责由★★★
Main program --d1splays chars
者★★★古古★★★★肯★★★古★肃★责古★★★★古★舌★古★青★
main()
int 1
braNdt()i
dispDefinechar(o, box)i
d1spDefinechar (1, xbox)i
dispDefinechar (2, plug)i
d1spDefinechar(3, battery )i
d1spDefinechar(4, white circle)i
dispDefineChar(5, black circle)i
dispDefineChar (6, smiley)i
d1spDefineChar (7,frowny)i
d1spPrintf("User-defined chars: \n\n")i
dispprintf(" %cc sc cc %c Sc %C\n"
0,1,2,3,4,5,6,7)
dispprintf("0 1 23456 7\n")
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.