// TD-ARDUINO // test des potentiometres #include // LCD screen pins const int rs = 12, en = 11, d4 = 2, d5 = 3, d6 = 4, d7 = 5; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); void setup() { analogWrite(A3, 0); // set the brightness of the LCD screen to the maximum value Serial.begin(9600); lcd.begin(16, 2); // begin LCD screen with 16 columns and 2 rows } void loop() { int PotOne = map(analogRead(A0), 0, 1023, 0, 9); int PotTwo = map(analogRead(A1), 0, 1023, 0, 9); int PotThree = map(analogRead(A2), 0, 1023, 0, 9); lcd.setCursor(0, 0); lcd.print(PotOne); lcd.setCursor(2, 0); lcd.print(PotTwo); lcd.setCursor(4, 0); lcd.print(PotThree); }