I2C LCD - 汎用キャラクタ液晶モジュール I2C化アダプター

I2C LCD - 汎用キャラクタ液晶モジュール I2C化アダプター

汎用のキャラクター液晶モジュール(パラレル接続)をI2C&3.3V化するアダプター I2C LCD をmbedで使うライブラリー


I2C LCD (Galileo 7)

ライブラリ

I2CLCD

sample i2clcd_lib

サンプル

#include "mbed.h"
#include "I2CLCD.h"

I2CLCD i2clcd(p9, p10);

DigitalOut myled(LED1);

int main() {

    myled = 1;
    i2clcd.putc('0');
    i2clcd.putc('A');
    i2clcd.putc('a');
    i2clcd.printf(" 123456789 abcdefghijklmnop");
    myled = 0;

    for (;;);
}

I2Cを他と共用する場合

  :
I2C i2c(p9, p10);
I2CLCD i2clcd(i2c);
  :

参考


0 comments

You need to log in to post a comment