📄 lcdcmd.h
字号:
/*------------------------------------------------------------------------------------------
LCDCMD.H
Header file to LCDCMD.C File
Project: RADIATION COUNTING SYSTEM
ELECTRONICS CORPORATION OF INDIA LIMITED, HYDERABAD
Developed By VINAY All rights reserved.
--------------------------------------------------------------------------------------------*/
#ifndef _LCDCMD_H
#define _LCDCMD_H
/*
* LCD commands.
*/
// Clear display:
const unsigned char LCD_CLEAR = (1 << 0);
// return cursor and LCD to home position:
const unsigned char LCD_HOME = (1 << 1);
// set cursor move direction:
const unsigned char LCD_MOVEDIR = (1 << 2);
// shift display when byte written to display
const unsigned char LCD_MOVEDIR_SHIFT = (1 << 0);
// increment the cursor after each byte written:
const unsigned char LCD_MOVEDIR_ID = (1 << 1);
// Enable display/cursor:
const unsigned char LCD_DISPEN = (1 << 3);
// turn cursor blink on:
const unsigned char LCD_DISPEN_BLINK = (1 << 0);
// turn cursor on:
const unsigned char LCD_DISPEN_CURSOR = (1 << 1);
// turn display on:
const unsigned char LCD_DISPEN_DISP = (1 << 2);
// move cursor/shift display:
const unsigned char LCD_MCSD = (1 << 4);
// direction of shift (right if set):
const unsigned char LCD_MCSD_RL = (1 << 2);
// turn on display shift:
const unsigned char LCD_MCSD_SC = (1 <<3);
// set interface length:
const unsigned char LCD_SETIFLEN = (1 << 5);
// set character font 5x10 (1) or 5x7 (0)
const unsigned char LCD_SETIFLEN_F = (1 << 2);
// set # of display lines 1 if 0, 2 if 1:
const unsigned char LCD_SETIFLEN_N = (1 << 3);
// set interface length 8 bits if 1, 4 bits if 0
const unsigned char LCD_SETIFLEN_DL = (1 << 4);
// move cursor into CGRAM:
const unsigned char LCD_MOVERAM = (1 << 6);
// Move cursor to display:
const unsigned char LCD_MOVEDISPLAY = (1 << 7);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -