1/#include <ezButton.h>23ezButton button1(2);4ezButton button2(3);56voidsetup(){7// put your setup code here, to run once:8 button1.setDebounceTime(50);9 button2.setDebounceTime(50);1011 Serial.begin(9600);1213}1415voidloop(){16// put your main code here, to run repeatedly:17 button1.loop();18 button2.loop();1920int btn1State = button1.getState();21int btn2State = button2.getState();2223if((button1.isPressed())&&(button2.isPressed())){24 Serial.println("C");25}elseif(button1.isPressed()){26 Serial.println("A");27}elseif(button2.isPressed()){28 Serial.println("");29}3031}32