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

📄 lcd.h

📁 Interfacing 8 bit LCD to any microcontroller
💻 H
字号:
/*------------------------------------------------------------------------------------------
LCD.H
Header file to LCD.C File
Project: RADIATION COUNTING SYSTEM
ELECTRONICS CORPORATION OF INDIA LIMITED, HYDERABAD
Developed By VINAY                			All rights reserved.
--------------------------------------------------------------------------------------------*/

#ifndef _LCD_H
#define _LCD_H
                                                                        /*
 * LcdWriteChar()
 * Writes a character to the display at the current cursor location.
 * Parameters:
 *     unsigned char dval: the character to write to the display (see
 *       the Hitachi data sheet)
 * Returns: nothing
 */
void LcdWriteChar(unsigned char dval);

/*
 * LcdWriteString()
 * Writes a string to the display, starting at the current cursor location.
 * Parameters:
 *     unsigned char *str: pointer to the string to write to the display
 * Returns: nothing
 */
void LcdWriteString(unsigned char *str);

/*
 * LcdMoveCursor()
 * Moves the cursor to a specific row and column.
 * Parameters:
 *     unsigned char row: Put the cursor on this row.
 *     unsigned char col: Put the cursor in this column.
 * Returns: nothing
 * Note: No bounds checking is performed, so it's possible to set an illegal
 *       location.
 */
void LcdMoveCursor(unsigned char row, unsigned char col);

/*
 * LcdInit()
 * Prepare the LCD for use.  This function should be called before attempting
 * to actually use the LCD.
 * Parameters: none.
 * Returns: nothing.
 */
void LcdInit(void);

/*
 * LcdClear()
 * Clear the display and return the cursor to the home position.
 * Parameters: none.
 * Returns: nothing
 */
void LcdClear(void);
/*
 * delay()
 * Delays the operation
 * Parameters: delay required
 * Returns: nothing
 */
void delay(long int k);
void LcdWriteCmd(unsigned char cmd);
void LcdAutoMove(void);



#endif

⌨️ 快捷键说明

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