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

CPX MakeCode "photon off" is broken #1208

Open
ricknun opened this issue Feb 15, 2022 · 1 comment
Open

CPX MakeCode "photon off" is broken #1208

ricknun opened this issue Feb 15, 2022 · 1 comment

Comments

@ricknun
Copy link

ricknun commented Feb 15, 2022

Describe the bug
See the CPX MakeCode defect demonstration program at: https://makecode.com/_DuF8A5XAp8fW

The program header comment includes: In the forever loop set the second photon mode to each choice and observe the simulator and CPX. Pen up (leave prior colors alone), pen down (write the last color set), and eraser (turn pixels off) all make sense. But "off" in the simulator ignores the "photon flip" and continues going forward with pen down, painting the last random color used. "Off" in the CPX hardware shuts off the bright photon as hoped, but forever -- it never comes back on with the next "photon pen down". Also the CPX seems hung at this point and won't program again (using the MS MakeCode for CPX" Windows app).

Expected behavior
First, "photon off" should behave the same in the simulator and CPX hardware. Next, it should be documented at https://makecode.adafruit.com/reference/light/set-photon-mode. (It isn't mentioned there.) I would expect "photon off" to turn off the bright white photon and proceed the same as "pen up" -- a way to move the pen without the super-bright white LED.

Desktop (please complete the following information):
I am using Windows 10 and the "Microsoft MakeCode for Circuit Playground Express" app.

@ricknun
Copy link
Author

ricknun commented Feb 16, 2022

Under "Expected behavior" I think it would be better to expect "photon off" to turn off the bright white photon LED and ignore any motion/hue/other commands until put into one of the other 3 modes.

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

1 participant