Last active
January 28, 2021 10:26
-
-
Save jnogues/34be983591dae827b3002b20c5180593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//program entradaAnalogica.ino | |
//curs 2019-20, 1r CFGS Electromedicina Clínica, Mòdul 09 | |
//variables | |
unsigned int valorA0 = 0; | |
//programa | |
void setup() | |
{ | |
//pinMode(13, OUTPUT); | |
Serial.begin(115200); | |
delay(1000); | |
Serial.println("Comencem"); | |
Serial.println("programa entradaAnalogica.ino, gener 2021"); | |
} | |
void loop() | |
{ | |
valorA0 = analogRead(0); | |
Serial.print("Valor entrada A0= "); | |
Serial.println(valorA0); | |
//analogWrite(13, valorA0); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment