Hi guys,
So I'm running this code on an UNO and for the life of me I cant understand why it prints "SOMETHING 0" every 0.5 seconds. It shouldn't print anything.
I think I'm saying:
if 0 is greater than 0 do something..it is not... so it should do nothing, right?
Can someone help me with this please?
byte inputsA = 0;
void setup()
{
Serial.begin(9600);
delay (1000);
}
void loop()
{
if ( inputsA > 0);
{
Serial.print("SOMEHING ");
Serial.println(inputsA, DEC);
delay(500);
}
}