microsoft / pxt-adafruit

Microsoft MakeCode editor for Adafruit Circuit Playground Express
https://makecode.adafruit.com
Other
81 stars 77 forks source link

CPX "start beep, do work, end beep" doesn't work #1209

Open ricknun opened 2 years ago

ricknun commented 2 years ago

Describe the bug This Circuit Playground Express MakeCode Program demonstrates the issue. It is a Morse Code program stripped down to just the defect. Running it on the simulator is enough to show the problem. After watching the LED pattern awhile, turn on sound with a button A click. The sound doesn’t follow the LED pattern as it should. Also, now another button A click is not recognized. (If an Adafruit 3811 3-NeoPixel strip is attached to pin A1 it scrolls 3 LEDs on and 3 LEDs off, but this isn’t necessary to show the problem.) This was filed at https://forum.makecode.com/t/cpx-neostrip-beeper-issue/12168 but got no responses there.

Expected behavior See the LEDs turn on, off, on, off... Turn sound on with a button A click. The tone should stay on while the LEDs are on and turn off when the LEDs are off.