I think this is actually the first time I've seen a project with images in it... Did you use the ImageMagick commands in the graphics page to get the images into Espruino, or did you do it some other way?
Also, I don't know if it helps, but it's actually possible to get two separate pitches out of one speaker. Just connect each side of it to a PWM output (and make sure you do digitalWrite(pin,0) rather than digitalRead(pin) when you want to stop the sound).
You can also output actual waveforms if you want to, even at once. I did a forum post on it, but I'm the most un-musical person ever so never managed to come up with two distinct music tracks to play 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.
Love it! Thanks for posting it up :)
I think this is actually the first time I've seen a project with images in it... Did you use the ImageMagick commands in the graphics page to get the images into Espruino, or did you do it some other way?
Also, I don't know if it helps, but it's actually possible to get two separate pitches out of one speaker. Just connect each side of it to a PWM output (and make sure you do
digitalWrite(pin,0)
rather thandigitalRead(pin)
when you want to stop the sound).You can also output actual waveforms if you want to, even at once. I did a forum post on it, but I'm the most un-musical person ever so never managed to come up with two distinct music tracks to play at once :)