lcd.h LPC17xx library

September 12, 2017 | Author: Gurudatta Palankar | Category: N/A
Share Embed Donate


Short Description

Descripción: lcd.h LPC17xx library......

Description

#ifndef _LCD_H #define _LCD_H #include "lpc17xx.h" #include "lpc_types.h" #define LCDGPIO LPC_GPIO2 #define LCDDATA LPC_GPIO0

//Change this to change the gpio IO port //Change this to change the data IO port

#define MAX_CHAR_IN_ONE_LINE 16 #define LCD_BACK_LIGHT_TIMEOUT 1000 #define LCD_BACKLIGHT (1 FIODIR #define LCD_BACK_LIGHT_SET LPC_GPIO4->FIOSET #define LCD_BACK_LIGHT_CLR LPC_GPIO4->FIOCLR #define LCD_DATA_DIR #define LCD_DATA_SET #define LCD_DATA_CLR

LCDDATA->FIODIR LCDDATA->FIOSET LCDDATA->FIOCLR

#define LCD_CTRL_DIR #define LCD_CTRL_SET #define LCD_CTRL_CLR

LCDGPIO->FIODIR LCDGPIO->FIOSET LCDGPIO->FIOCLR

#define change #define change #define change

(1
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF