Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NeoPixels do not turn off on Circuit Playground Bluefruit on REPL soft reboot #2341

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

Closed
kevinjwalters opened this issue Nov 30, 2019 · 2 comments · Fixed by #2548
Closed

NeoPixels do not turn off on Circuit Playground Bluefruit on REPL soft reboot #2341

kevinjwalters opened this issue Nov 30, 2019 · 2 comments · Fixed by #2548
Labels
Milestone

Comments

@kevinjwalters
Copy link

kevinjwalters commented Nov 30, 2019

There's some difference in behaviour here between the Circuit Playground Bluefruit and Circuit Playground Express. If you turn on some pixels and then hit Cntrl-D in REPL on a CPX then pixels turn off. On a CPB it they remain on.

Perhaps there are also other peripherals that are not re-initialised too?

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 5.0.0-beta.0 on 2019-11-19; Adafruit Circuit Playground Bluefruit with nRF52840
>>>
>>> from adafruit_circuitplayground.bluefruit import cpb
>>> cpb.pixels[5] = (50, 0, 0)
>>> cpb.pixels[6] = (0, 50, 0)
>>> cpb.pixels[7] = (0, 0, 50)
>>>
soft reboot

This is on 5.0.0-beta.0 with the latest library copied in from https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground - I am running 4.1.0 on the CPX, btw.

@dhalbert dhalbert added this to the 5.0.0 milestone Dec 10, 2019
@dhalbert
Copy link
Collaborator

CPX resets the neopixels to all off in board.c:reset_board(). Do the same for CPB.

@kevinjwalters
Copy link
Author

It wasn't in the release notes but I thought I'd check 5.0.0.beta.3. FYI, I'm still seeing the NeoPixels left on.

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

Successfully merging a pull request may close this issue.

2 participants