Buenas a todos,
necesito ayuda con un programa;
tengo un arduino UNO y le coloque 6 pulzadores en 6 pines diferentes y lo que quiero es que cuando hago diferentes selecciones con esos botones se imprima un valor X, pero no se como leer todos esos 6 pines sin tantas lineas de programación (es decir un o por uno):
//v1=digitalRead(p1);
//v2=digitalRead(p2);
//v3=digitalRead(p3);
//v4=digitalRead(p4);
//v5=digitalRead(p5);
//v6=digitalRead(p6);
y que cuando obtenga los valores (puede ser binario) se imprima un caracter con esos mismo valores.
Saludos,
Y gracias de antemano.
Good to all,
I need help with a program; I have an arduino ONE and him place 6 pulzadores in 6 pines different and what I want is that when I do different selections with these buttons there is stamped a value X, but not as all this 6 read pines without so many lines of programming (it is one says or for one):
// v1=digitalRead (p1);
// v2=digitalRead (p2);
// v3=digitalRead (p3);
// v4=digitalRead (p4);
// v5=digitalRead (p5);
// v6=digitalRead (p6);
and that when it obtains the values (can binary being) stamps a character with this same values. Regards, And thank you in advance.