#include <LiquidCrystal.h>
Liquidcrystal_I2C lcd(0x27,16,2)
void setup() {
// Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print the first message
lcd.setCursor(0, 0); // Set cursor to first line
lcd.print("wooooooow");
// Print the second message
lcd.setCursor(0, 1); // Set cursor to second line
lcd.print("-_-");
}
void loop() {
// No need to repeat anything in the loop
}
//display potenciometra //
//
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16,2);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(32, INPUT);
lcd.init();
lcd.backlight();
lcd.home();
}
void loop() {
int percent = analogRead(32)/17;
float rep = analogRead(32) *100.0 / 4095.0;
analogWrite(33,percent);
lcd.home();
lcd.print("Voltage= ");
lcd.print(rep);
lcd.print("% ");
}
//