LoginSignup
0
0

More than 3 years have passed since last update.

wemosで16字2行LCD

Last updated at Posted at 2019-06-28

概要

wemod d1で16字2行LCDやってみた。

写真

DSCN0365.JPG

接続

i2cなので、SDAとSCLをつなぎます。
アドレスは、0x27です。

サンプルコード

#include <Wire.h> 
#include "Lcd8574.h"

Lcd8574 lcd;
int i = 0;
void setup()
{
    pinMode(2, OUTPUT);
    lcd = Lcd8574();
    lcd.begin(16, 2);
    lcd.print("012hello, world!");
}
void loop()
{
    i++;
    lcd.setCursor(1, 0);
    lcd.print(i);
    digitalWrite(2, HIGH);
    delay(1000);
    digitalWrite(2, LOW);
    delay(1000);
}

ライブラリー

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0