-
Notifications
You must be signed in to change notification settings - Fork 27
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
pin.set_analog_period()
out of range values do not throw exception.
#142
Comments
Not sure if CODAL should propagate out an error from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In V1
pin0.set_analog_period_microseconds(255)
andpin0.set_analog_period(1001)
throwValueError
, but in V2 the values are instead not updated (they are not clamped, so the set method silently fails to update the value).V1:
V2:
From manual testing the min value for V2 is 0 and max value is 262 ms.
The text was updated successfully, but these errors were encountered: