Skip to content

Clear Trellis NeoPixels on board reset. #1332

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

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Nov 13, 2018

This makes it easier to change code in cases where the pixels may
cause a brownout.

This makes it easier to change code in cases where the pixels may
cause a brownout.
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@@ -36,4 +41,11 @@ bool board_requests_safe_mode(void) {
}

void reset_board(void) {
uint8_t zeroes[96];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uint8_t zeroes[96] = {0}; works to init to zero also, and the compiler will choose the best way. Don't have to change it if you don't want to.

@dhalbert dhalbert merged commit f190bb2 into adafruit:master Nov 13, 2018
@ladyada
Copy link
Member

ladyada commented Nov 13, 2018

nice!

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

Successfully merging this pull request may close these issues.

3 participants