Published on May 15, 2014
Upload this sketch to your Arduino module to play the Jeopardy theme song.
*To complete this exercise, you will need to download the Arduino software.
This sketch uses integer arrays. Integer arrays allow you to store multiple values of the same data type under one name. In this case, the notes of the song are all one data type and the durations for all the notes are another data type. This functionality combined with a for loop makes it easy to write code that references a lot of values.
For more “getting started” sketches, click here.
To learn more about coding, find examples on Arduino’s website.