Skip to content

match the latest core code #46

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 3 commits into from
May 6, 2022
Merged

Conversation

jepler
Copy link
Contributor

@jepler jepler commented May 6, 2022

Dan changed the neopixel timing in the core based on extensive research. In an attempt to stamp out misinformation, update it here too. Tested on a macropad.

@jepler jepler requested a review from a team May 6, 2022 13:28
Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

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

Didn't test, just feedback about the comments.

# NeoPixels are 800khz bit streams. Zeroes are 1/3 duty cycle (~416ns) and ones
# are 2/3 duty cycle (~833ns).
# NeoPixels are 800khz bit streams. We are choosing zeros as <312ns hi, 936 lo> and ones
# and ones as <700 ns hi, 556 ns lo>.
Copy link
Member

Choose a reason for hiding this comment

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

Looks like a repetition of "and ones"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dhalbert will want to fix this in the core, I think I faithfully copy-pasted it 😀

# are 2/3 duty cycle (~833ns).
# NeoPixels are 800khz bit streams. We are choosing zeros as <312ns hi, 936 lo> and ones
# and ones as <700 ns hi, 556 ns lo>.
# cycle. The first two instructions always run while only one of the two final
Copy link
Member

Choose a reason for hiding this comment

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

I think "cycle" may be a carryover from the old text?

Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

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

Sweet! Didn't test, but everything looks good to me!

@jepler jepler merged commit 56b4872 into adafruit:main May 6, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 10, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO055 to 5.4.1 from 5.4.0:
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
  > Update Black to latest.

Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM9x to 2.2.4 from 2.2.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM9x#73 from jcerise/65/missing_type_annotations
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
  > Update Black to latest.
  > Fixed readthedocs build
  > Consolidate Documentation sections of README

Updating https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad to 1.16.1 from 1.16.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ImageLoad#60 from matt-land/add-typing

Updating https://github.com/adafruit/Adafruit_CircuitPython_JWT to 1.2.6 from 1.2.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_JWT#11 from ktkinsey37/typing
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
  > Update Black to latest.
  > Fixed readthedocs build
  > Consolidate Documentation sections of README

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.7.2 from 0.7.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#47 from jepler/example-updates-background
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#46 from jepler/neopixel-match-core
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#45 from jepler/background-morse
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.

2 participants