Answers for "arduino taster"

0

arduino taster

int taster=7;
int tasterstatus=0;

void setup(){
  pinMode(taster, INPUT);
}

void loop(){
  tasterstatus=digitalRead(taster);
  if (tasterstatus == HIGH){
     //your statements
  }
}
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language