question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Micropython support for ev3dev2.sound

See original GitHub issue

ev3dev2.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:closed
  • Created 4 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dwalton76commented, May 13, 2019

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.

1reaction
dwalton76commented, May 12, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found