Created
May 2, 2020 03:33
-
-
Save komponenrobot/a3bccd8233c4ce7c572bf71ad8503196 to your computer and use it in GitHub Desktop.
lcd_i2c_prot
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
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x20,16,2); | |
int dataInteger = 100; | |
float dataFloat = 1.5; | |
char dataChar = 'c'; | |
void setup() | |
{ | |
lcd.init(); | |
lcd.setCursor(0,0); | |
lcd.print("RobotikID"); | |
} | |
void loop() | |
{ | |
for(int a=0; a<16; a++){ | |
lcd.clear(); | |
lcd.setCursor(a,0); | |
lcd.print("Running Text"); | |
delay(500); | |
} | |
lcd.setCursor(0,1); | |
lcd.print(dataInteger); | |
lcd.setCursor(3,1); | |
lcd.print(dataFloat); | |
lcd.setCursor(8,1); | |
lcd.print(dataChar); | |
delay(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment