#include <LiquidCrystal.h>
// LCD setup (pins connected to the Arduino)
// reference : https://wokwi.com/projects/330112801381024338
//https://docs.wokwi.com/parts/wokwi-lcd1602/
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
// you can now interact with the LCD, e.g.:
//
//lcd.print(float pin_adc_read(pin_t pin))
Serial.begin(115200);
pinMode(A1, INPUT);
pinMode(A2, INPUT);
pinMode(A3, INPUT);
pinMode(A4, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
//analog printing (system (?) not lcd...)
Serial.print("AnalogA1: ");
Serial.println(analogRead(A1));
Serial.print("AnalogA2: ");
Serial.println(analogRead(A2));
Serial.print("AnalogA3: ");
Serial.println(analogRead(A3));
Serial.print("AnalogA4: ");
Serial.println(analogRead(A4));
delay(1000);
// array of readings from four input pins
double readings[] = {A1, A2, A3, A4};
lcd.print(A1);
lcd.print(" "); // formatting..?
delay (1000);
lcd.print(A2);
lcd.print(" ");
delay (1000);
lcd.print(A3);
lcd.print(" ");
delay (1000);
lcd.print(A4);
lcd.print(" ");
delay (1000);
// custom chip to simulate voltages?
//for
//float voltages[]
}