firmware of NBCTRLV1 / AYC01

Dependencies:   SDFileSystemEx mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcd.h Source File

lcd.h

00001 #ifndef __LCD_H__
00002 #define __LCD_H__
00003 
00004 #include "mbed.h"
00005 
00006 class LCD {
00007 public:
00008     LCD();
00009 
00010     void printStr(const char *s);
00011     void setContrast(unsigned char c);
00012     void setCursor(unsigned char x,unsigned char y);
00013     void cls(void);
00014     void init(void);
00015     void printStr2(const char *s, const char *s2);
00016     void printStrY(int y,const char *s);
00017     void printStrYscr(int y,const char *s);
00018 
00019 protected:
00020     void cmd(char x);
00021     void contdata(char x);
00022     void lastdata(char x);
00023     void printStrFill(const char *s);
00024     I2C *i2c;
00025 };
00026 
00027 #endif