int pot;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
pot = analogRead(A0);
float tensao = 5.*pot/1023;
Serial.print("Tensão do pot.: ");
Serial.print(tensao);
Serial.println(" [V]");
delay(500);
}
Loading
cd74hc4067
cd74hc4067