Open bboyho opened 5 years ago
Use “play sound until done” as play sound is non-blockjng.
I tried using the play sound ba ding until done
code block but there is no sound coming out. Adding a pause after did not help either. :'(
There is an amplifier on the CPX so you get to hear. I've changed the image to a headphone so that it actually gets to be hearable.
Ah, I did not realize that until you pointed it out. I thought it was a piezo that was on the CPX. I used the same code but I was not able to get it working on a piezo buzzer. Is it possible to set it to output a PWM signal to control a piezo? Or would I need to get an audio amplifier and a small speaker? I feel like it would be easier for users if they use it with the piezo buzzer.
There is no amp so we would need to emit a square wave at full volume to get something out.
Describe the bug Issue with "Music" blocks. The buzzer does not seem to be functioning on A0 when using it with the SparkFun RedBoard Turbo under MakeCode Beta site.
To Reproduce When attaching a piezo buzzer to the DAC on A0, it does not seem to work. "Adafruit Circuit Playground Express" seems to work on pin A0.
Music > play sound "ba ding"
code block.forever
loop.Expected behavior The board should make a sound when the code executes the forever loop. Specifically a coin sound effect.
Screenshots![turbo makecode betabuzzer](https://user-images.githubusercontent.com/3209977/53363160-0bf30980-38f9-11e9-924a-e355e20b95cb.jpg)
Desktop (please complete the following information):