Physik: Unterschied zwischen den Versionen

Aus RMG-Wiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „UNVOLLSTÄNDIG <pre> void setup() { } void loop() { tone(2,262,800);delay(810); tone(2,294,800);delay(810); tone(2,330,800);delay(810); tone(2,349,8…“)
 
Zeile 3: Zeile 3:
 
void setup()
 
void setup()
 
{
 
{
    
+
   pinMode(13,OUTPUT);
 +
  pinMode(7,INPUT);
 
}
 
}
 
void loop()
 
void loop()
 
{
 
{
   tone(2,262,800);delay(810);
+
   if(digitalRead(7) == HIGH)
  tone(2,294,800);delay(810);
+
  {
  tone(2,330,800);delay(810);
+
    tone(2,262,800);delay(810);
  tone(2,349,800);delay(810);
+
    tone(2,294,800);delay(810);
  tone(2,392,1600);delay(1610);
+
    tone(2,330,800);delay(810);
  tone(2,392,1600);delay(1610);
+
    tone(2,349,800);delay(810);
  tone(2,440,600);delay(610);
+
    tone(2,392,1600);delay(1610);
  tone(2,440,600);delay(610);
+
    tone(2,392,1600);delay(1610);
  tone(2,440,600);delay(610);
+
    tone(2,440,800);delay(810);
  tone(2,440,600);delay(610);
+
    tone(2,440,800);delay(810);
  tone(2,392,800);delay(810);
+
    tone(2,440,800);delay(810);
  tone(2,440,600);delay(610);
+
    tone(2,440,800);delay(810);
  tone(2,440,600);delay(610);
+
    tone(2,392,3200);delay(3210);
  tone(2,440,600);delay(610);
+
    tone(2,440,800);delay(810);
  tone(2,440,600);delay(610);
+
    tone(2,440,800);delay(810);
  tone(2,392,800);delay(810);
+
    tone(2,440,800);delay(810);
  tone(2,349,400);delay(410);
+
    tone(2,440,800);delay(810);
  tone(2,349,400);delay(410);
+
    tone(2,392,3200);delay(3210);
  tone(2,349,400);delay(410);
+
    tone(2,349,800);delay(810);
  tone(2,330,800);delay(810);
+
    tone(2,349,800);delay(810);
  tone(2,330,800);delay(810);
+
    tone(2,349,800);delay(810);
  tone(2,294,400);delay(410);
+
    tone(2,349,800);delay(810);
  tone(2,294,400);delay(410);
+
    tone(2,330,1600);delay(1610);
  tone(2,294,400);delay(410);
+
    tone(2,330,1600);delay(1610);
  tone(2,294,400);delay(410);
+
    tone(2,294,800);delay(810);
   tone(2,262,800);delay(810);
+
    tone(2,294,800);delay(810);
+
    tone(2,294,800);delay(810);
 +
    tone(2,294,800);delay(810);
 +
    tone(2,262,3200);delay(3210);
 +
    }
 +
   else
 +
  {
 +
    tone(2,344,1000);delay(1100);
 +
  }
 
}
 
}

Version vom 10. Dezember 2014, 09:31 Uhr

UNVOLLSTÄNDIG

void setup()
{
  pinMode(13,OUTPUT);
  pinMode(7,INPUT);
}
void loop()
{
  if(digitalRead(7) == HIGH)
  {
    tone(2,262,800);delay(810);
    tone(2,294,800);delay(810);
    tone(2,330,800);delay(810);
    tone(2,349,800);delay(810);
    tone(2,392,1600);delay(1610);
    tone(2,392,1600);delay(1610);
    tone(2,440,800);delay(810);
    tone(2,440,800);delay(810);
    tone(2,440,800);delay(810);
    tone(2,440,800);delay(810);
    tone(2,392,3200);delay(3210);
    tone(2,440,800);delay(810);
    tone(2,440,800);delay(810);
    tone(2,440,800);delay(810);
    tone(2,440,800);delay(810);
    tone(2,392,3200);delay(3210);
    tone(2,349,800);delay(810);
    tone(2,349,800);delay(810);
    tone(2,349,800);delay(810);
    tone(2,349,800);delay(810);
    tone(2,330,1600);delay(1610);
    tone(2,330,1600);delay(1610);
    tone(2,294,800);delay(810);
    tone(2,294,800);delay(810);
    tone(2,294,800);delay(810);
    tone(2,294,800);delay(810);
    tone(2,262,3200);delay(3210);
    }
  else
  {
    tone(2,344,1000);delay(1100);
  }
}