5 Looping Through an Array

Notes

// Copy and paste this code into your sketch:

// the index of each note in the song
int notes[] = {2,1,0,1,2,2,2,1,1,1,2,4,4, 2,1,0,1,2,2,2,1,1,2,1,0};

// the number of notes in the song
int numberOfNotes = 25;

Your Learning Journey

x

Goodbye and thanks for all the fish,

Thanks for helping us Kickstart Awesome Shield and learning with us. Sadly, turning Awesome Shield into a sustainable business didn’t work out and so we’re in the process of officially shutting down the company.

Read our full letter.

If you have an Awesome Shield you can keep using it and the learning platform.


Close Message