Arduino: LCD 1602 I2C

From OnnoWiki
Revision as of 00:15, 31 March 2023 by Onnowpurbo (talk | contribs) (Created page with "Download Library https://github.com/johnrickman/LiquidCrystal_I2C Copy file zip ke mv *zip ~/Arduino/library/ Code #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Download Library

https://github.com/johnrickman/LiquidCrystal_I2C

Copy file zip ke

mv *zip ~/Arduino/library/

Code

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  lcd.begin();
}

void loop(){
  lcd.setCursor(0,0);
  lcd.print("TEST LCD i2C");
  lcd.setCursor(0,1);
  lcd.print("KelasRobot.com");
}