Date: mié., feb. 11, 2015 2:09 PM
Subject: <3
To: Joaquín Navarro
int Male = A0;
int Joaco = A1;
int food = 0;
int relationshipState = LOW;
void setup() {
pinMode(A0, INPUT);
pinMode(A1, INPUT);
}
void loop() {
int maleFeels = analogRead(A0);
int joacoFeels = analogRead(A1);
for (int joacoFeels = Joaco; joacoFeels > maleFeels; ++joacoFeels) {
++food;
}
if (++food) {
++maleFeels;
}
if ( maleFeels == joacoFeels) {
relationshipState = HIGH;
}
}
No hay comentarios:
Publicar un comentario