Skip to content

Instantly share code, notes, and snippets.

@clive520
Created June 5, 2018 12:26
Show Gist options
  • Save clive520/3394270327ae015b163e6aece08ce8ea to your computer and use it in GitHub Desktop.
Save clive520/3394270327ae015b163e6aece08ce8ea to your computer and use it in GitHub Desktop.
NodeMCU_LCD
//接線 GND==>GND VCC==>5V SDA==>D2 SDL==>D1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup()
{
lcd.begin();
}
void loop()
{
lcd.setCursor(0, 0);
lcd.print("Hello World!");
lcd.setCursor(0, 1);
lcd.print("LINE 2");
lcd.setCursor(7, 1);
lcd.print("890123456");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment