Created
June 5, 2018 12:26
-
-
Save clive520/3394270327ae015b163e6aece08ce8ea to your computer and use it in GitHub Desktop.
NodeMCU_LCD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//接線 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