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

📄 lcd_hw.h

📁 飞思卡尔液带晶驱动的MCU例程 飞思卡尔液带晶驱动的MCU例程
💻 H
字号:
extern const unsigned int wt_display1[3][16][LCD_BP_CNT];
extern const unsigned int wt_display2[2][16][LCD_BP_CNT];

void wt_display_digit(const unsigned int data[16][LCD_BP_CNT],unsigned char digit);
void wt_display_bargraph(unsigned char no_of_bars); /* displays a bargraph, 0=hide, 1=underline only, 2=1bar, ... */
void wt_diplay1_set(unsigned int value, unsigned char format);
void wt_diplay2_set(int value);

/* definition of symbols on the display */
/* <hex value>, <index in the LCD array> */

  /* minus sign in place of digit 1 of display 1 (1G) */
#define WT_DISP1_MINUS    0x0001,1
  /* decimal dot on display 1 (L4) */
#define WT_DISP1_DOT      0x0040,0
  /* degree sign on display 1 (L3) */
#define WT_DISP1_DEGREE   0x0010,3
  /* celsius degree sign on display 1 (L5) */
#define WT_DISP1_DEGC     0x0040,3
  /* text "AUTO" (L1) */
#define WT_AUTO           0x0001,3
  /* text "A/C" (L2) */
#define WT_AC             0x0004,3
  /* windscereen symbol (L16) */
#define WT_WINDSCREEN     0x0040,2
  /* air direction arrow - top (L17) */
#define WT_ARROW_TOP      0x0200,1
  /* air direction arrow - bottom (L18) */
#define WP_ARROW_BOTTOM   0x0040,1
  /* pictogram of human body (L19) */
#define WP_BODY           0x0200,2
  /* fan symbol (L15) */
#define WT_FAN            0x0200,3
  /* text "OUTSIDE" (L20) */
#define WT_OUTSIDE        0x2000,3
  /* minus sign in front of display 2 (L7G) */
#define WT_DISP2_MINUS    0x0400,2
  /* leading "1" in front of display 2 (6BC) */
#define WT_DISP2_100      0x0400,3
  /* degree sign on display 2 (L21) */
#define WT_DISP2_DEGREE   0x0800,3
  /* symbol to display "degF" together with WT_DISP2_DEGREE (L22) */
#define WT_DISP2_DEGF     0x0400,0
  /* symbol to display "degC" together with WT_DISP2_DEGREE (L23) */
#define WT_DISP2_DEGC     0x0400,1

/* macros for displaying and erasing symbols */

#define WT_DISP_WRAP(mask,index)  LCD_data.data[(index)][0]|=(mask)
#define WT_DISPLAY(symbol)        WT_DISP_WRAP(symbol)

#define WT_ERA_WRAP(mask,index)   LCD_data.data[(index)][0]&=~(mask)
#define WT_ERASE(symbol)          WT_ERA_WRAP(symbol)

⌨️ 快捷键说明

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