Arduino 6 - mikrofón - digitálny vstup

From DT^2
Revision as of 12:02, 29 July 2019 by Palo (talk | contribs) (Created page with "<syntaxhighlight lang="C++"> void setup() { pinMode(3, INPUT); Serial.begin(9600); } void loop() { if (digitalRead(3)) { Serial.println("tap-tap"); delay(500)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
void setup() {
  pinMode(3, INPUT);
  Serial.begin(9600);
}

void loop() {
  if (digitalRead(3))
  {
    Serial.println("tap-tap");
    delay(500);
  }
}