LCD For I2C
LCDTaonoi.h@1:a8cb70204513, 2016-12-03 (annotated)
- Committer:
- sweilz
- Date:
- Sat Dec 03 10:50:46 2016 +0000
- Revision:
- 1:a8cb70204513
- Parent:
- 0:ef783944caa1
LCD FIBO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pruek | 0:ef783944caa1 | 1 | #ifndef LCDTAONOI_H |
pruek | 0:ef783944caa1 | 2 | #define LCDTAONOI_H |
pruek | 0:ef783944caa1 | 3 | #include "mbed.h" |
sweilz | 1:a8cb70204513 | 4 | #include <string> |
pruek | 0:ef783944caa1 | 5 | |
pruek | 0:ef783944caa1 | 6 | class LCDTaonoi |
pruek | 0:ef783944caa1 | 7 | { |
pruek | 0:ef783944caa1 | 8 | public: |
pruek | 0:ef783944caa1 | 9 | LCDTaonoi(PinName _SDA, PinName _SCL , int _addr = 0x4E ); |
pruek | 0:ef783944caa1 | 10 | void Command (char value, int Mode = 0); |
sweilz | 1:a8cb70204513 | 11 | void print (string Data); |
pruek | 0:ef783944caa1 | 12 | int address(int column, int row); |
pruek | 0:ef783944caa1 | 13 | void setCursor (int column, int row); |
sweilz | 1:a8cb70204513 | 14 | void clear(); |
pruek | 0:ef783944caa1 | 15 | //void Command (const char* value, int Mode ) |
pruek | 0:ef783944caa1 | 16 | // ~LCDTaonoi(); |
pruek | 0:ef783944caa1 | 17 | private: |
pruek | 0:ef783944caa1 | 18 | const int addr ; |
pruek | 0:ef783944caa1 | 19 | I2C lcd; |
pruek | 0:ef783944caa1 | 20 | |
pruek | 0:ef783944caa1 | 21 | }; |
pruek | 0:ef783944caa1 | 22 | |
pruek | 0:ef783944caa1 | 23 | #endif |