📅  最后修改于: 2022-03-11 14:56:43.084000             🧑  作者: Mango
int taster=7;
int tasterstatus=0;
void setup(){
pinMode(taster, INPUT);
}
void loop(){
tasterstatus=digitalRead(taster);
if (tasterstatus == HIGH){
//your statements
}
}