firmware of NBCTRLV1 / AYC01

Dependencies:   SDFileSystemEx mbed

lcd.h

Committer:
bkc_mbed
Date:
2016-04-18
Revision:
1:29f0e76a9999
Parent:
0:722cc5360dc3

File content as of revision 1:29f0e76a9999:

#ifndef __LCD_H__
#define __LCD_H__

#include "mbed.h"

class LCD {
public:
    LCD();

    void printStr(const char *s);
    void setContrast(unsigned char c);
    void setCursor(unsigned char x,unsigned char y);
    void cls(void);
    void init(void);
    void printStr2(const char *s, const char *s2);
    void printStrY(int y,const char *s);
    void printStrYscr(int y,const char *s);

protected:
    void cmd(char x);
    void contdata(char x);
    void lastdata(char x);
    void printStrFill(const char *s);
    I2C *i2c;
};

#endif