Загрузка данных


#include <LiquidCrystal.h>

int pot = A0;
float result = 0.0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  pinMode(pot, INPUT);
  lcd.begin(16, 2);

  lcd.print("hello, world!");
}

void loop() {
  result = analogRead(pot);

  lcd.setCursor(0, 1);

  lcd.print((result/1023.0)*5*1000/10.0);
  delay(100);
}