Pinmanee Truz
/
LCD4884_and_LCD5110
get an input from RFID to control the LCD
Fork of LCD4884 by
Diff: LCD4884.h
- Revision:
- 1:baf91b6482eb
- Parent:
- 0:28f3c9274ea7
--- a/LCD4884.h Sat Mar 09 21:07:35 2013 +0000 +++ b/LCD4884.h Sun Dec 10 16:17:13 2017 +0000 @@ -16,12 +16,12 @@ #include "mbed.h" // SPI Interface --- (on arduino Arduino Digital Pin 2,3,4,5,6) -#define SPI_SCK PTD4 //Serial Clock(Master Output) -#define SPI_MOSI PTA12 //Master Output,Slave Input -#define LCD_DC PTA4 //Data/Command(command active low) -#define SPI_CS PTA5 //Chip Select,Slave Transmit Enable(active low,Master Output) -#define LCD_RST PTC8 //One Reset button -#define LCD_BL PTC9 //PWM Backlit control (Arduino DIO Pin 7) +#define SPI_SCK D2 //Serial Clock(Master Output) +#define SPI_MOSI D3 //Master Output,Slave Input +#define LCD_DC D4 //Data/Command(command active low) +#define SPI_CS D5 //Chip Select,Slave Transmit Enable(active low,Master Output) +#define LCD_RST D6 //One Reset button +#define LCD_BL D7 //PWM Backlit control (Arduino DIO Pin 7) //display mode -- normal / highlight @@ -47,7 +47,7 @@ void LCD_write_string(unsigned char X,unsigned char Y,char *s, char mode); void LCD_prop_write_string(unsigned char X,unsigned char Y,char *s, char mode); void LCD_write_chinese(unsigned char X, unsigned char Y,unsigned char *c,unsigned char ch_with,unsigned char num,unsigned char line,unsigned char row); - void LCD_write_string_big ( unsigned char X,unsigned char Y, char *string, char mode ); + void LCD_write_string_big( unsigned char X,unsigned char Y, char *string, char mode ); void LCD_write_char_big (unsigned char X,unsigned char Y, unsigned char ch, char mode); void LCD_write_char(unsigned char c, char mode); unsigned char LCD_prop_write_char(unsigned char c, char mode);