📄 upsd3200_lcd.h
字号:
/*------------------------------------------------------------------------------
LCD_IO.h
This is the header file for the uPSD3200 LCD Device Driver (upsd3200_lcd.c).
Note: Some functions have been commented out so as to remove linker warnings
for code segments that are not used.
Copyright (c) 2004 STMicroelectronics Inc.
This example demo code is provided as is and has no warranty,
implied or otherwise. You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code contains
at least one uPSD products (device).
LIMITATION OF LIABILITY: NEITHER STMicroelectronics NOR ITS VENDORS OR
AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
------------------------------------------------------------------------------*/
#ifndef _LCD_IO_H_
#define _LCD_IO_H_
// Read Only from Command register
#define BF_BIT 0x80 // Busy flag
// Write Only to Command register
#define DD_ADDR 0x80 // set DDRAM address
#define CG_ADDR 0x40 // set CGRAM address
#define LCD_LINE_LENGTH 0x000F // length of single line on lcd display
void SetUserCG(unsigned char*);
void lcd_init(void);
void BusyCheck(void);
void setXY_LCD(unsigned char,unsigned char);
void putch_LCD(unsigned char);
void printfLCD(unsigned char*,...);
char Bin2Hex(unsigned char);
void lcd_clear(void);
void lcd_string_display(unsigned char row, unsigned char col, char *);
void lcd_char_display(unsigned char row, unsigned char col, char ch);
void lcd_cursor_set(unsigned char row, unsigned char col);
void copy_message(unsigned int, unsigned int);
char htoa_lo(unsigned char byte);
char lhtoa_lo(unsigned int word);
char htoa_hi(unsigned char byte);
char lhtoa_hi(unsigned int word);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -