虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

Font

  • 16 16点阵显示汉字原理及显示程序

    16 16点阵显示汉字原理及显示程序 #include "config.h" #define                DOTLED_LINE_PORT        PORTB #define                DOTLED_LINE_DDR                DDRB #define                DOTLED_LINE_PIN                PINB #define                DOTLED_LINE_SCKT        PB1 #define                DOTLED_LINE_SCKH        PB5 #define                DOTLED_LINE_SDA                PB3 #define                DOTLED_ROW_PORT                PORTC #define                DOTLED_ROW_DDR                DDRC #define                DOTLED_ROW_PIN                PINC #define                DOTLED_ROW_A0                PC0 #define                DOTLED_ROW_A1                PC1 #define                DOTLED_ROW_A2                PC2 #define                DOTLED_ROW_A3                PC3 #define                DOTLED_ROW_E                PC4 uint8 Font[] = { /*--  调入了一幅图像:这是您新建的图像  --*/ /*--  宽度x高度=16x16  --*/ 0x00,0x00,0x00,0x00,0x08,0x38,0x18,0x44,0x08,0x44,0x08,0x04,0x08,0x08,0x08,0x10, 0x08,0x20,0x08,0x40,0x08,0x40,0x08,0x40,0x3E,0x7C,0x00,0x00,0x00,0x00,0x00,0x00 }; static void TransmitByte(uint8 byte); static void SelectRow(uint8 row); static void FlipLatchLine(void); static void TransmitByte(uint8 byte) {         uint8 i;                  for(i = 0 ; i < 8 ; i ++)         {                 if(byte & (1 << i))                 {                         DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SDA);                 }                 else                 {                         DOTLED_LINE_PORT &= ~_BV(DOTLED_LINE_SDA);                 }                 //__delay_cycles(100);                 DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SCKH);                 //__delay_cycles(100);                 DOTLED_LINE_PORT &= ~_BV(DOTLED_LINE_SCKH);                 //__delay_cycles(100);         } } static void SelectRow(uint8 row) {           //row -= 1;         row |= DOTLED_ROW_PIN & 0xe0;         DOTLED_ROW_PORT = row; } static void FlipLatchLine(void) {         DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SCKT);         DOTLED_LINE_PORT &= ~_BV(DOTLED_LINE_SCKT); } void InitDotLedPort(void) {         DOTLED_LINE_PORT &= ~(_BV(DOTLED_LINE_SCKT) | _BV(DOTLED_LINE_SCKH));         DOTLED_LINE_PORT |= _BV(DOTLED_LINE_SDA);         DOTLED_LINE_DDR |= _BV(DOTLED_LINE_SCKT) | _BV(DOTLED_LINE_SCKH) | _BV(DOTLED_LINE_SDA);                  DOTLED_ROW_PORT |= 0x1f;         DOTLED_ROW_PORT &= 0xf0;         DOTLED_ROW_DDR |= 0x1f; } void EnableRow(boolean IsEnable) {         if(IsEnable)         {                 DOTLED_ROW_PORT &= ~_BV(DOTLED_ROW_E);         }         else         {                 DOTLED_ROW_PORT |= _BV(DOTLED_ROW_E);         } } void PrintDotLed(uint8 * buffer) {         uint8 i , tmp;                  for(i = 0 ; i < 16 ; i ++)         {                 tmp = *buffer ++;                 TransmitByte(~tmp);                 tmp = *buffer ++;                 TransmitByte(~tmp);                 SelectRow(i);                 FlipLatchLine();         } } void main(void) {         InitDotLedPort();                  EnableRow(TRUE);                  while(1)         {                 PrintDotLed(Font);                 __delay_cycles(5000);         }          } //---------------------------------------------------- config.h文件 #ifndef        _CONFIG_H #define        _CONFIG_H //#define                GCCAVR #define                CPU_CYCLES        7372800L #ifndef                GCCAVR #define                _BV(bit)        (1 << (bit)) #endif #define                MSB                0x80 #define                LSB                0x01 #define                FALSE                0 #define                TRUE                1 typedef                unsigned char        uint8; typedef                unsigned int        uint16; typedef                unsigned long        uint32; typedef                unsigned char        boolean; #include <ioavr.h> #include <inavr.h> #include "dotled.h" #endif //-----

    标签: 16 点阵显示 汉字 显示程序

    上传时间: 2013-11-18

    上传用户:mnacyf

  • 应用于ucGUI的16*16点阵字库文件 只要将该文件加入ucGUI的工程中, 再在GUI.H中如下声明: extern const GUI_Font GUI_Font6x8 ...... exter

    应用于ucGUI的16*16点阵字库文件 只要将该文件加入ucGUI的工程中, 再在GUI.H中如下声明: extern const GUI_Font GUI_Font6x8 ...... extern const GUI_Font GUI_Font_HZ16x16 //汉字字体 即可使用. 使用实例: static void DemoHZ(void) { const char str[] = GUI_UC_START"中国人民万岁"GUI_UC_END /* Set ShiftJIS Font */ GUI_SetFont(&GUI_Font_HZ16x16) GUI_DispString(str) }

    标签: ucGUI GUI_Font GUI_Font extern

    上传时间: 2014-12-02

    上传用户:woshini123456

  • 《Visual Basic.NET GDI+技术教程》源码 《Visual Basic.NET GDI+技术教程》的图书简介 GDI+是在Windows窗体应用程序中以编程方式显示图形图像的一

    《Visual Basic.NET GDI+技术教程》源码 《Visual Basic.NET GDI+技术教程》的图书简介 GDI+是在Windows窗体应用程序中以编程方式显示图形图像的一种方法。 本书讨论GDI+技术、“图形编辑器”、“图像”菜单。由三部分组成,第一部分,概述了GDI+及GDI+的新功能,讨论了Graphics对象及该对象的方法,状态和创建,讨论了五种画笔的使用,讨论了Font对象,构造函数、属性、方法和颜色,讨论了Color对象的成员及它们的应用, RGB函数,Alpha混合线条的填充,讨论了GraphicsPath对象,该对象的方法及应用,创建轨迹梯度。第二部分,讨论使用GDI+显示图形图像;GDI+支持的图形文件的格式,加载和显示图形图像文件,在控件中显示图形图像。第三部分,讨论了“图形编辑器”、“图像”菜单;使用“图形编辑器”、“图像”菜单制作和编辑图形图像的颜色处理。 本书适合于对Visual Basic编辑有一定了解,希望进一步学习Visual Basic.NET的GDI+技术的读者。

    标签: Visual GDI Basic NET

    上传时间: 2015-08-27

    上传用户:huangld

  • 这是一个移植到vc上的小型ucGUI

    这是一个移植到vc上的小型ucGUI,有助于容易理解GUI的实现和移植到嵌入式系统上,其中包括了Font,Widget,Window,Graphs(circle,line,poly,arc),LCDDriver,MemDev等。

    标签: ucGUI 移植

    上传时间: 2013-12-21

    上传用户:wangyi39

  • Listed below are the typographical conventions used in this guide. – Example C++ code and commands

    Listed below are the typographical conventions used in this guide. – Example C++ code and commands to be typed by the user are in non-bold characters in typewriter Font. – Items where the user has to supply a name or number are given in lower-case italic characters in typewriter Font. – Sections marked with a ‡ describe features that are also available in ANSI C.

    标签: typographical conventions commands Example

    上传时间: 2013-12-20

    上传用户:xiaoxiang

  • <%@ LANGUAGE="VBSCRIPT" %> <!--#include file="util.asp" --> <% Head="您放入购物车的物品已经全数

    <%@ LANGUAGE="VBSCRIPT" %> <!--#include file="util.asp" --> <% Head="您放入购物车的物品已经全数退回!" Session("ProductList") = "" %> <html> <head> <meta http-equiv="Content-Type" content="text/html charset=gb2312"> <STYLE type=text/css>.main { Font-SIZE: 9pt } .main1 { Font-SIZE: 14px } </STYLE> <title>清空购物车</title> </head> <body topmargin="5" bgcolor="#E6E4C4"> <diiv align="center"><center> <table width="100%" border="0" class="table1" bordercolor="#62ACFF" cellspacing="0" class=main1> <tr> <td width="80%" valign="top"> <p align="center" class=main1><%=Head%></p> <p align="center"> <br><input type="button" value="关闭" name="B2" onclick="window.close() " style="Font-size: 9pt"></td> </tr> </table> </center></div> </body> </html>

    标签: lt LANGUAGE VBSCRIPT include

    上传时间: 2015-11-05

    上传用户:zhaoq123

  • Floating Window.It is descendant of TCustomPanel. You can: - Drag on its title bar. - Set title ba

    Floating Window.It is descendant of TCustomPanel. You can: - Drag on its title bar. - Set title bar on the left (only for truetype Font) - Show/Hide buttons on title bar - Expand/shrink window (like tool window in CorelDraw)

    标签: title TCustomPanel descendant Floating

    上传时间: 2013-12-20

    上传用户:wendy15

  • ch03目录下: disasm.tgz :作者改写的反汇编器,可以输出比较容易接受的汇编格式。 simpleboot.tgz: 作者编写的简单boot代码 ch04目录下: gba

    ch03目录下: disasm.tgz :作者改写的反汇编器,可以输出比较容易接受的汇编格式。 simpleboot.tgz: 作者编写的简单boot代码 ch04目录下: gba_ucos.tgz : 作者移植的可运行在GBA(或者模拟器)上的uC/OS-II代码 ch05目录下: znet.tgz : 作者在uC/OS-II上实现的tcp/ip协议实现代码 ch09目录下: Font.c 字体显示和变更例程 image1 位图文件加载与显示 2win.c 两个窗口间消息传递例程 button 按钮制作的例程 slider 游戏文件程序

    标签: simpleboot tgz disasm ch

    上传时间: 2014-01-09

    上传用户:妄想演绎师

  • === === === === === === === === === === ==== IBM PC KEYBOARD INFORMATION FOR SOFTWARE DEVELOPERS =

    === === === === === === === === === === ==== IBM PC KEYBOARD INFORMATION FOR SOFTWARE DEVELOPERS ================================================================ Sources: PORTS.A of Ralf Brown s interrupt list collection repairfaq.org keyboard FAQ(doesn t appear to exsist) Linux source code Test hardware: New Samsung KB3T001SAXAA 104-key keyboard Old Maxi 2186035-00-21 101-key keyboard NO WARRANTY. NO GUARANTEE. I have tried to make this information accurate. I don t know if I succeeded. Corrections or additional information would be welcome. This is a plain-text document. If you use a word-processor to view it, use a fixed-pitch Font (like Courier) so columnar data and ASCII art lines up properly.

    标签: INFORMATION DEVELOPERS KEYBOARD SOFTWARE

    上传时间: 2014-08-18

    上传用户:ecooo

  • //构造具有指定的标签的菜单 files = new Menu("文件(F)") compile = new Menu("编辑(E)") see = new Menu("查看(V

    //构造具有指定的标签的菜单 files = new Menu("文件(F)") compile = new Menu("编辑(E)") see = new Menu("查看(V)") format = new Menu("格式(O)") Font = new Menu("字体和颜色(F)...") //在格式菜单下再添加一个字体及颜色的菜单 help = new Menu("帮助(H)") //构造具有指定的标签的菜单项 news = new MenuItem("新建(N)" + " " + "Ctrl+N") open = new MenuItem("打开(O)..." + " " + "Ctrl+O") save = new MenuItem("保存(S)" + " " + "Ctrl+S") other = new MenuItem("另存为(A)...") page = new MenuItem("页面设置(U)...") mim = new MenuItem("打印(P)..." + " " + "Ctrl+P") quit = new MenuItem("退出(X)")

    标签: Menu new compile files

    上传时间: 2016-02-27

    上传用户:小儒尼尼奥