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

Development debugging from firmware #145

Open
che-effe opened this issue Feb 5, 2019 · 4 comments
Open

Development debugging from firmware #145

che-effe opened this issue Feb 5, 2019 · 4 comments

Comments

@che-effe
Copy link

che-effe commented Feb 5, 2019

Hi, I'm trying to finish up my work with supporting RGBW pixels. I'm looking to get debug output from the board to help fix that last few bugs and have been having some difficulty.
I would love to output the values of things like color_depth to ensure that the value changes based on params being passed in on initialization.

@ajfisher
Copy link
Owner

ajfisher commented Feb 6, 2019

So you can switch on a debug flag in the library:

https://github.com/ajfisher/node-pixel/blob/master/firmware/src/libs/ws2812/ws2812.h#L16

And then basically you just

#ifdef DEBUG
Serial.write(foo);
#endif

That will mean you can leave the debug stuff in there later too.

@ajfisher
Copy link
Owner

ajfisher commented Feb 6, 2019

Oh and then that will print it all out to the serial interface.

@che-effe
Copy link
Author

che-effe commented Feb 6, 2019

Ah yes, we did see that. And thank you for the prompt response! The catch is we're relying on that Serial for J5 communication, no?
We were able to output to the Serial interface, but then unable to connect the board through J5. And vice versa. I'm trying to confirm that we can toggle between color_depth of 4 and 3 to enable a default, and I desire to be able to switch between the two on the fly. In general, if I can get output from the board while using it would be invaluable.

@ajfisher
Copy link
Owner

ajfisher commented Feb 7, 2019 via email

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