Skip to content

Fix status DotStar writes: fixes DotStar issues on PyRulers#2102

Merged
dhalbert merged 1 commit into
adafruit:4.xfrom
dhalbert:4.x-dotstar-fix
Sep 2, 2019
Merged

Fix status DotStar writes: fixes DotStar issues on PyRulers#2102
dhalbert merged 1 commit into
adafruit:4.xfrom
dhalbert:4.x-dotstar-fix

Conversation

@dhalbert

@dhalbert dhalbert commented Sep 2, 2019

Copy link
Copy Markdown
Collaborator

Fixes #2064. New batch of DotStars on PyRulers didn't work with old code. Previous DotStars were much more tolerant of non-spec writes.

  • Trailing 0xff bytes were omitted in previous DotStar writes. Now 4 are used. Could maybe get away with 1 (Arduino library does, after experimentation), but safer to use 4.
  • Add constant for write buffer size and length of writes. Previously some writes were 8, some were 12.
  • SPI polarity corrected (doesn't work on PyRuler DotStars otherwise).
  • Increased clock speed to 1MHz from 100kHz.

This should provoke another 4.x release sooner or later. The changes should be merged to master after merging to 4.x.

@dhalbert dhalbert added this to the 4.x.x - Bug fixes milestone Sep 2, 2019

@ladyada ladyada left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

didnt test on hardware, but looks good to me!

@dhalbert

dhalbert commented Sep 2, 2019

Copy link
Copy Markdown
Collaborator Author

Tested on PyRuler (two samples), Trinket M0, Itsy M0, and Itsy M4.

@jerryneedell jerryneedell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Tested on PyRuler and Gemma_M0 == works on both! Also fixes #2037. Yay! Thanks.

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

Successfully merging this pull request may close these issues.

3 participants