top of page
C Major Code

int speakerPin = 3;
void setup() {
pinMode(speakerPin,
OUTPUT);
}

void loop() {

  tone (speakerPin, 261, 1000);  //C
  delay (1000);
  tone (speakerPin, 294, 1000);  //D
  delay (1000);
  tone (speakerPin, 330, 1000);  //E 
  delay (1000);
  tone (speakerPin, 349, 1000);  //F
  delay (1000);
  tone (speakerPin, 392, 1000);  //G
  delay (1000);
  tone (speakerPin, 440, 1000);  //A
  delay (1000);
  tone (speakerPin, 494, 1000);  //G
  delay (1000);
  tone (speakerPin, 524, 1000);  //High C
  delay (1000);
  tone (speakerPin, 494, 1000);  //G
  delay (1000);
  tone (speakerPin, 440, 1000);  //F
  delay (1000);
  tone (speakerPin, 392, 1000);  //E
  delay (1000);
  tone (speakerPin, 349, 1000);  //D
  delay (1000);
  tone (speakerPin, 330, 1000);  //C
  delay (1000);
  tone (speakerPin, 294, 1000);  //B
  delay (1000);
  tone (speakerPin, 261, 1000);  //A
  delay (1000);
}

Igniting Innovation through Functional Prototyping and Physical Computing

Contact Information

odysseyboardedu.@gmail.com
Phone: (360) 303-5526
24338 Lee Road
Mount Vernon, WA 98274

Contact Us

Thanks for submitting!

© 2017 by Odyssey Board. All rights reserved.

bottom of page