Difference between revisions of "Arduino 14 - kohutik"

From DT^2
Jump to: navigation, search
(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...")
 
Line 1: Line 1:
 
<syntaxhighlight lang="C++">
 
<syntaxhighlight lang="C++">
 +
#define SIRENA 12
 +
 
void setup() {
 
void setup() {
 
   pinMode(SIRENA, OUTPUT);
 
   pinMode(SIRENA, OUTPUT);

Revision as of 11:00, 6 August 2019

#define SIRENA 12

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();  
}