Micropython support for ev3dev2.sound
See original GitHub issueev3dev2.sound does not support micropython. This is an issue because audio keys are useful while testing. For now I can use the following to make the robot beep.
import os
os.system("/usr/bin/beep")
However it would be nice to have support. I found that what is breaking the module is
from subprocess import check_output, Popen, PIPE
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Sound — python-ev3dev 2.1.0.post1 documentation
class ev3dev2.sound. Sound ¶. Support beep, play wav files, or convert text to speech. Examples: from ev3dev2.sound import Sound spkr = Sound() #...
Read more >python-ev3dev2 - PyPI
A Python3 library implementing an interface for ev3dev devices, letting you control motors, sensors, hardware buttons, LCD displays and more from Python ......
Read more >Sound - EV3dev Python - Google Sites
To play sounds you must first import the Sound class and create an instance of that class so every script below includes from...
Read more >media – Sounds and Images — ev3-micropython ... - Pybricks
ev3dev – Sounds and Images¶. EV3 MicroPython is built on top of ev3dev, which comes with a variety of image and sound files....
Read more >python-ev3dev Documentation - Read the Docs
3 ev3dev2.console supports the system fonts, but the fonts for ... The names and interfaces of some of the Sound class methods have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Once a few PRs go in the main feature we will be missing that is in @JunOllyLi 's library is Button support. dlech had that working here so I don’t think we are too far off from having pretty good micropython support without have to touch ev3dev, micropython-lib, or micropython.
@JunOllyLi wow you have made a lot of progress!! Have you thought about submitting pull requests for the changes you have made to the various repos? It would be nice to pull your work in and have sound, buttons and LEDs all working in micropython for ev3dev-lang-python.