8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
# ardx demo #7-2 from digitalio import * from board import * from pulseio import * import time Direction = DigitalInOut.Direction led = PWMOut(D9) brightness = 44800 brightness = max(0, brightness) brightness = min(65000, brightness) led.duty_cycle = brightness print(brightness) print(led.duty_cycle)
duty_cycle overflows :) should allow up to 65535
The text was updated successfully, but these errors were encountered:
a884acc
atmel-samd: Fix PWMOut duty_cycle when used with TCC peripherals.
6ea2a86
Fixes adafruit#148. Fixes adafruit#151
No branches or pull requests
duty_cycle overflows :) should allow up to 65535
The text was updated successfully, but these errors were encountered: