Arduino 14 - kohutik

From DT^2
Revision as of 11:00, 6 August 2019 by Palo (talk | contribs) (Created page with "<syntaxhighlight lang="C++"> void setup() { pinMode(SIRENA, OUTPUT); } void c() { tone(SIRENA, 261); delay(200); } void d() { tone(SIRENA, 294); delay(200); } voi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
void setup() {
  pinMode(SIRENA, OUTPUT);
}

void c()
{
  tone(SIRENA, 261);
  delay(200);
}

void d()
{
  tone(SIRENA, 294);
  delay(200);
}

void e()
{
  tone(SIRENA, 330);
  delay(200);
}

void f()
{
  tone(SIRENA, 349);
  delay(200);
}

void loop() {
  c(); d(); e(); f(); f(); f();
  f(); e(); d(); e(); e(); e();
  e(); d(); c(); d(); d(); d();
  d(); e(); d(); c(); c(); c();  
}