LCD For I2C
LCDTaonoi.h@0:ef783944caa1, 2015-12-05 (annotated)
- Committer:
- pruek
- Date:
- Sat Dec 05 19:19:31 2015 +0000
- Revision:
- 0:ef783944caa1
- Child:
- 1:a8cb70204513
LCD
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" |
pruek | 0:ef783944caa1 | 4 | |
pruek | 0:ef783944caa1 | 5 | class LCDTaonoi |
pruek | 0:ef783944caa1 | 6 | { |
pruek | 0:ef783944caa1 | 7 | public: |
pruek | 0:ef783944caa1 | 8 | LCDTaonoi(PinName _SDA, PinName _SCL , int _addr = 0x4E ); |
pruek | 0:ef783944caa1 | 9 | void Command (char value, int Mode = 0); |
pruek | 0:ef783944caa1 | 10 | void SendData (char* Data); |
pruek | 0:ef783944caa1 | 11 | int address(int column, int row); |
pruek | 0:ef783944caa1 | 12 | void setCursor (int column, int row); |
pruek | 0:ef783944caa1 | 13 | //void Command (const char* value, int Mode ) |
pruek | 0:ef783944caa1 | 14 | // ~LCDTaonoi(); |
pruek | 0:ef783944caa1 | 15 | private: |
pruek | 0:ef783944caa1 | 16 | //Serial pc(SERIAL_TX,SERIAL_RX); |
pruek | 0:ef783944caa1 | 17 | const int addr ; |
pruek | 0:ef783944caa1 | 18 | I2C lcd; |
pruek | 0:ef783944caa1 | 19 | |
pruek | 0:ef783944caa1 | 20 | }; |
pruek | 0:ef783944caa1 | 21 | |
pruek | 0:ef783944caa1 | 22 | |
pruek | 0:ef783944caa1 | 23 | |
pruek | 0:ef783944caa1 | 24 | #endif |