void setup() {
pinMode(2, INPUT);
Serial.begin(115200);
// put your setup code here, to run once:
}
void loop() {
if(digitalRead(2)==HIGH)
{
Serial.println("按钮确发");
}
// put your main code here, to run repeatedly:
delay(100); // this speeds up the simulation
}