Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LGLCD by
lglcd.h
00001 #ifndef __LGLCD_H 00002 #define __LGLCD_H 00003 00004 #define CMD 0 00005 #define TXT 1 00006 #define CLEAR 1 00007 #define HOME 2 00008 #define READ 1 00009 #define WRITE 0 00010 #define LEFT 0 00011 #define RIGHT 1 00012 00013 #define LINE1 0x80 // Start address of first line 00014 #define LINE2 0xC0 // Start address of second line 00015 00016 #define LCD_CLR (writedata(CLEAR,CMD)) 00017 #define LCD_HOME (writedata(HOME,CMD)) 00018 #define LCD_BUSYBIT 0x8000 //correct value for the lcd BUSYBIT 00019 00020 00021 class lglcd 00022 { 00023 public: 00024 lglcd(PinName rs, PinName e, PinName d4, PinName d5,PinName d6, PinName d7); 00025 void clear(void); 00026 void writedata(unsigned char info, unsigned char type); 00027 void lglcd::setline(int row,int column); 00028 void write(char charq[]); 00029 int l; 00030 protected: 00031 BusOut _lcdinfo; 00032 DigitalOut _lcdrs; 00033 DigitalOut _lcde; 00034 int cline; 00035 int cpos; 00036 }; 00037 #endif
Generated on Mon Jul 18 2022 01:24:48 by
1.7.2
