// bool state = true;
int conditionState = 0;
void setup()
{
// put your setup code here, to run once:
Serial.begin(9600);
// Serial.println("button1: HIGH");
}
void loop()
{
// put your main code here, to run repeatedly:
// while(state)
// {
// Serial.println("button1: HIGH");
// state = false;
// }
if (conditionState == 0)
{
Serial.println("button1: HIGH");
conditionState = 1;
}
if(conditionState == 1)
{
Serial.println("button2: HIGH");
conditionState = 0;
}
}