Skip to content

enable selection of polling rate #10

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 2 commits into from
Nov 28, 2023
Merged

enable selection of polling rate #10

merged 2 commits into from
Nov 28, 2023

Conversation

semininja
Copy link
Contributor

I saw that this was partially implemented, and it looked fairly straightforward to put in the rest.

Copy link
Contributor

@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.

This is fine. But the style of how various values are represented is odd. Integers are passed in (instead of named constants). They are then checked against some named constants, and then converted back to the internal integer register values.

It would have been better if only the named constants could be passed in. They could be type-checked, and then their values would just be used to set the register values.

@dhalbert dhalbert merged commit f668c62 into adafruit:main Nov 28, 2023
@CedarGroveStudios
Copy link
Collaborator

CedarGroveStudios commented Nov 28, 2023

My only concern is with the use of f-string formatting within a common CircuitPython library. F-strings are not implemented on limited-memory boards like the M0 if I understand correctly.

@dhalbert
Copy link
Contributor

f-strings are now everywhere, as of 8.1.0

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 29, 2023
Updating https://github.com/adafruit/CircuitPython_NAU7802 to 2.1.1 from 2.0.0:
  > Merge pull request adafruit/CircuitPython_NAU7802#11 from JohnHind/main
  > Merge pull request adafruit/CircuitPython_NAU7802#10 from semininja/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing to 1.15.0 from 1.14.13:
  > Merge pull request adafruit/Adafruit_CircuitPython_FeatherWing#81 from makermelissa/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
adafruit-adabot added a commit to adafruit/CircuitPython_Community_Bundle that referenced this pull request Nov 29, 2023
Updating https://github.com/Uberi/biplane to 1.0.4 from 1.0.2:
  > Add check for malformed unicode, move tests out of top level

Updating https://github.com/CedarGroveStudios/CircuitPython_NAU7802 to 2.1.1 from 2.0.0:
  > Merge pull request adafruit/CircuitPython_NAU7802#11 from JohnHind/main
  > Merge pull request adafruit/CircuitPython_NAU7802#10 from semininja/main
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