?? lcd.h
字號:
/* ATmega103 lcd.h file
Author : Robert Stuart
Company : PDL Industries
Date of Creation : 26 August 1999
*/
/* includes */
#include <iom103.h>
#include <stdio.h>
#include <string.h>
#include "logic.h"
#include "ports.h"
/* constants for initialising and controlling the lcd */
#define INSTRUCTION 0x00
#define DATA 0x01
#define FUNCTION_SET 0x38
#define DISPLAY_CLEAR 0x01
#define DISPLAY_ON 0x0C
#define BUSY_FLAG 0x80
#define FIRST_LINE 0x80
#define SECOND_LINE 0xC0
/* "Lcd_Status" options */
#define LCD_OK 0x01
#define LCD_UPDATE 0x02
#define LCD_BUSY 0x04
#define LCD_INITIALISE 0x08
#define LCD_QUEUE 0x10
/* External Variables */
extern const char *LCDHeader1;
extern const char *LCDHeader2;
extern char LCDStatus;
extern char PowerStatus;
/* Local variables */
static unsigned char LCDCounter;
static unsigned char LCDLine;
static char LCDStr1[17];
static char LCDStr2[17];
static char LCDQueueStr1[17];
static char LCDQueueStr2[17];
/* Local prototypes */
void InitScreen( void );
void ConfigureLCD( void );
void WriteToScreen( void );
void WriteToDevice( char, unsigned char );
char ReadDevice( unsigned char );
void CheckIfBusy( void );
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -