Skip to content

Add limit_rotation option to constrain needle rotation #26

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
Mar 24, 2021

Conversation

kmatch98
Copy link
Contributor

This resolves: #23

by adding a limit_rotation option to constrain needle rotation between min and max values. Default is True to constrain rotation.

Also, I updated the docstrings to include the default values of most input parameters.

@jposada202020
Copy link
Contributor

I review the changes mentioned in 5733d1d on

Adafruit CircuitPython 6.2.0-beta.4 on 2021-03-18; Seeeduino Wio Terminal with samd51p19

I did this changing the values in the simple_test_dial using -5 and 2000.

Changes work as mentioned in this PR. Needle moves slower, but did not go under or over the dial.

Looks good to me

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

These changes look good to me. Thank you for testing @jposada202020.

Thank you for the new feature and documentation improvements @kmatch98

@FoamyGuy FoamyGuy merged commit 21f55ef into adafruit:main Mar 24, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 25, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Shapes to 2.0.8 from 2.0.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Shapes#32 from Lukas1337/master
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 1.7.0 from 1.6.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#27 from kmatch98/annotation_PR
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#26 from kmatch98/dial_rotation

Updating https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing to 1.14.1 from 1.14.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_FeatherWing#69 from jfurcean/expose_cs_pins
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.

Dial gauge can go past limits.
3 participants