⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 window_option.h

📁 PIC单片机上用C语言写的TW88TFT屏控制程序,有注释
💻 H
字号:
/**************************************************/
/*        window_option.h                         */
/*        values for setting the windows options  */
/*  Projet DVD_portable                           */
/*  Hinh Sary 10/12/2004                          */ 
/**************************************************/

#define NB_WINOPTION    11 // number of window option

//window1 
#define WIN1            0x80 //window1 options 
#define HSTART1         8    //horizontal start location (per 8 pixels) 
#define VSTART1         110  //Vertical start location (per 4 lines)
#define WINW1           50   //window1 width (per char width)
#define WINH1           1    //window1 height (per char height)
#define BOR1            0xF1 //window1 border options
#define BORH1           2   //border1 width (per 1 pix max 127) 
#define BORV1           2   //border1 height (per 1 line max 255)
#define HSPACE1         1    //character H-space inside window1
#define VSPACE1         1    //character V-space inside window1
#define ADDSTART1       0x00 //window1 content start address (p18)
#define SIZE1           50   //number max of characters on window1   
#define FONT1           0x83 //font option (bleu)


//window2
#define WIN2            0x88 //window2 options 
#define HSTART2         62  //horizontal start location 
#define VSTART2         10 //Vertical start location
#define WINW2           5 //window2 width 
#define WINH2           1 //window2 height
#define BOR2            0 //window2 border options
#define BORH2           0 //border2 width 
#define BORV2           0 //border2 height 
#define HSPACE2         1 //character H-space inside window2
#define VSPACE2         1 //character V-space inside window2
#define ADDSTART2       0x80 //window2 content start address (p18)
#define SIZE2           10 //number max of characters on window2   
#define FONT2           0x82 //font option (green)

//window3 
#define WIN3            0x8C //window3 options 
#define HSTART3         62    //horizontal start location (per 8 pixels) 
#define VSTART3         8  //Vertical start location (per 4 lines)
#define WINW3           3   //window3 width (per char width)
#define WINH3           1    //window3 height (per char height)
#define BOR3            0   //window3 border options
#define BORH3           0   //border3 width (per 1 pix max 127) 
#define BORV3           0   //border3 height (per 1 line max 255)

#define VSPACE3         1    //character V-space inside window3
#define ADDSTART3       0xa0 //window3 content start address (&200)
#define SIZE3           3    //number max of characters on window3   
#define FONT3           0x8a //font option (green blink)

//window4 
#define WIN4            0x80 //window4 options 
#define HSTART4         8    //horizontal start location (per 8 pixels) 
#define VSTART4         110  //Vertical start location (per 4 lines)
#define WINW4           30   //window4 width (per char width)
#define WINH4           1    //window4 height (per char height)
#define BOR4            0xF1 //window4 border options
#define BORH4           2   //border4 width (per 1 pix max 127) 
#define BORV4           2   //border4 height (per 1 line max 255)
#define HSPACE4         1    //character H-space inside window4
#define VSPACE4         1    //character V-space inside window4
#define ADDSTART4       0xC1 //window4 content start address (&200)
#define SIZE4           30   //number max of characters on window4   
#define FONT4           0x83 //font option (write default)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -