![](/media/cache/profiles/fc76dcfc15b6be30b1e6d3c296f19e58.50x50_q85.jpg)
秋月電子 I2C接続キャラクタLCDモジュール用にI2CLCDライブラリを修正しました。 Modified I2CLCD Lib for ACM1602NI character LCD module. http://akizukidenshi.com/catalog/g/gP-05693/
I2cLCD16_ACM1601NI/I2cLCD.h
- Committer:
- maro
- Date:
- 2013-10-20
- Revision:
- 0:9bf010140a3f
File content as of revision 0:9bf010140a3f:
//8x2 lcd #ifndef MBED_I2CLCD_H #define MBED_I2CLCD_H #include "mbed.h" class I2cLCD : public Stream { public: I2cLCD(PinName sda, PinName scl); #if DOXYGEN_ONLY int putc(int c); int printf(const char* format, ...); #endif void locate(int column, int row); void cls(); int rows(); int columns(); void puticon(int flg); protected: virtual int _putc(int value); virtual int _getc(); int address(int column, int row); void character(int column, int row, int c); void writeCommand( int cmd ); void writeData( int data ); //DigitalOut _rs; I2C _i2c; int _column; int _row; char contrast; int icon; }; #endif