Skip to content

Instantly share code, notes, and snippets.

@sabas1080
Created December 7, 2017 03:54
Show Gist options
  • Save sabas1080/1b0aef43316152f3cad4ecaecea7a17b to your computer and use it in GitHub Desktop.
Save sabas1080/1b0aef43316152f3cad4ecaecea7a17b to your computer and use it in GitHub Desktop.
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