Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ed.PlayTone(Ed.NOTE_REST, Ed.NOTE_HALF) crashes EdisonOS #11

Open
PSLLSP opened this issue Jun 17, 2019 · 1 comment
Open

Ed.PlayTone(Ed.NOTE_REST, Ed.NOTE_HALF) crashes EdisonOS #11

PSLLSP opened this issue Jun 17, 2019 · 1 comment

Comments

@PSLLSP
Copy link

PSLLSP commented Jun 17, 2019

Ed.PlayTone(Ed.NOTE_REST, Ed.NOTE_HALF) crashes Edison robot so badly that it has to be rebooted with power on switch:

#-------------Setup----------------
import Ed

Ed.EdisonVersion = Ed.V2

Ed.DistanceUnits = Ed.CM
Ed.Tempo = Ed.TEMPO_MEDIUM
#--------Your code below-----------

Ed.PlayTone(Ed.NOTE_C_7, Ed.NOTE_HALF)
while Ed.ReadMusicEnd() == Ed.MUSIC_NOT_FINISHED: pass

Ed.PlayTone(Ed.NOTE_REST, Ed.NOTE_HALF) # BUG, troublemaker is here, key parameter is Ed.NOTE_REST

Ed.TimeWait(1, Ed.TIME_SECONDS)        

while True:
    Ed.LeftLed(Ed.ON)
    Ed.TimeWait(200, Ed.TIME_MILLISECONDS)        
    Ed.LeftLed(Ed.OFF)
    Ed.TimeWait(200, Ed.TIME_MILLISECONDS)        
@BenMicrobr
Copy link

this repository is not the place to report bugs and issues.
We do not continuously monitor this repository.

Please send this bug directly to us, via our contact form: https://meetedison.com/edison-robot-support/contact-us/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants