Skip to content

Instantly share code, notes, and snippets.

@winhtut
Created January 7, 2018 08:13
Show Gist options
  • Save winhtut/7db23622debddf800664c30afb241cf6 to your computer and use it in GitHub Desktop.
Save winhtut/7db23622debddf800664c30afb241cf6 to your computer and use it in GitHub Desktop.
I2c LCD
#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