I received the latest V2 micro.bit yesterday and the simple tutorial exercises work well, except selecting notes like Middle C from “Music” followed by Middle G does not play as the notes and is not in harmony. Also the temp setting seems to be all wrong. Below is the full program I copied from a website Behind the MakeCode Hardware - Speaker on the Circuit Playground Express. The tune played is supposed to be “Mary Had a Little Lamb”
on start
set volume (200)
change tempo by (bpm) (60)
on button (A) pressed
play (tone (Middle C) for 1/4 beat) until done
rest for (1/8 beat)
play (tone (Middle C) for 1/4 beat) until done
rest for (1/8 beat)
play (tone (Middle G) for 1/4 beat) until done
rest for (1/8 beat)
play (tone (Middle G) for 1/4 beat) until done
rest for (1/8 beat)
play (tone (Middle A) for 1/4 beat) until done
rest for (1/8 beat)
play (tone (Middle A) for 1/4 beat) until done
rest for (1/8 beat)
play (tone (Middle G) for 1/2 beat) until done
rest for (1/8 beat)
I do not understand what “until done” does"? the original code did not have it, but I don not seem to be able to select “Block Code” without that extension.
Any Help would be appreciated.
I am a retired Software Engineer, who has developed the language immdiate C, an “Event Driven” extension of the C language - suitable for Machine Control, Internet of Things (IOT), GUi’s and Games.
Since micro.bit supports both SPI and I2C, I want to use micro.bit as a simple I/O device. I have drivers for both SPI and I2C for immediate C.