var tune = "E B C D C B A A C E D C B C D E C A A D F A G F E C E D C B B C D E C A A";
I just copied the notes off google, but I've messed up the rhythm a bit. If you change the positions of the spaces you should be able to get it to sound ok though :)
Also: Simple hack, but if you connect a speaker between two PWM pins then you can get two tones at once :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
:) If you use: http://www.espruino.com/Making+Music
and then try
I just copied the notes off google, but I've messed up the rhythm a bit. If you change the positions of the spaces you should be able to get it to sound ok though :)
Also: Simple hack, but if you connect a speaker between two PWM pins then you can get two tones at once :)