Created
January 7, 2018 08:13
-
-
Save winhtut/7db23622debddf800664c30afb241cf6 to your computer and use it in GitHub Desktop.
I2c LCD
This file contains hidden or 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
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); | |
void setup() { | |
lcd.begin(16,2); | |
Serial.begin(9600); | |
} | |
void loop() { | |
if(card== "45632187"){ | |
lcd.print("GreenHacker"); | |
lcd.println(normal_water); | |
lcd.print("V_Water="); | |
}else{ | |
lcd.print("wrong"); | |
lcd.println(normal_water); | |
lcd.print("V_Water="); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment