Open johnscary-ev3 opened 3 years ago
For now you have to write your own async code like this. Having a built-in way to do this is farther down our roadmap (i.e. Pybricks v4).
Volume control should be possible in the shorter term though.
Thanks for the 'background music', music.py, program. That works great integrated into my program. I was thinking that timers and yield statements would probably be needed. Now I just need to do the same thing to other parts of my program running motors at the same time ;0) I think I know how to do that using motor.control.done() and yield statements also.
Volume control would be nice when working on the robot late at night ;0)
Question I have been using speaker.play_notes() to play music on Inventor Hub. It works great, but I have a couple questions:
Context Would like to play tunes while moving around or taking some other actions.
Thanks.