Difference between revisions of "Arduino: LCD 1602 I2C"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 15: | Line 15: | ||
void setup() { | void setup() { | ||
− | lcd. | + | lcd.init(); |
− | + | lcd.backlight(); | |
− | + | lcd.backlight(); | |
− | |||
lcd.setCursor(0,0); | lcd.setCursor(0,0); | ||
lcd.print("TEST LCD i2C"); | lcd.print("TEST LCD i2C"); | ||
lcd.setCursor(0,1); | lcd.setCursor(0,1); | ||
lcd.print("KelasRobot.com"); | lcd.print("KelasRobot.com"); | ||
+ | } | ||
+ | void loop(){ | ||
} | } |
Revision as of 00:37, 31 March 2023
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.init(); lcd.backlight(); lcd.backlight(); lcd.setCursor(0,0); lcd.print("TEST LCD i2C"); lcd.setCursor(0,1); lcd.print("KelasRobot.com"); } void loop(){ }