Created
December 7, 2017 03:54
-
-
Save sabas1080/1b0aef43316152f3cad4ecaecea7a17b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
int lecturas[6]={0,0,0,0,0,0}; | |
void setup() { | |
// put your setup code here, to run once: | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
for(i=0;i=6;i++){ | |
lectura[i]=analogRead(A0); | |
} | |
for(i=0;i=6;i++){ | |
int suma=suma+lectura[i] | |
} | |
int promedio=suma/6; | |
//Imprimir o guardar o enviar | |
// | |
// | |
promedio=0; | |
suma=0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment