03-02-2023, 06:47 AM
Code:
/*A2 INPUT PIN*/
#define input1 36
#define input2 39
void setup()
{
Serial.begin(115200);
pinMode(input1,INPUT);
pinMode(input2,INPUT);
}
void loop()
{
if (digitalRead(input1)==LOW){
Serial.println("input1 down");
}
if (digitalRead(input2)==LOW){
Serial.println("input2 down");
}
}