void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
analogReadResolution(12);
}
void loop() {
// put your main code here, to run repeatedly:
uint16_t vol = analogRead(4);
Serial.printf("Volume: %d\n",vol);
Serial.printf("voltage: %d\n",analogReadMilliVolts(4));
delay(50); // this speeds up the simulation
}