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.
1 parent a16e41a commit df7475dCopy full SHA for df7475d
src/adafruit_blinka/microcontroller/bcm283x/pwmio/PWMOut.py
@@ -103,8 +103,8 @@ def duty_cycle(self, duty_cycle):
103
raise TypeError("Invalid duty cycle type, should be int or float.")
104
105
if not 0 <= duty_cycle <= 65535:
106
- raise ValueError("Invalid duty cycle value, should be between "
107
- "0 and 65535")
+ raise ValueError(
+ "Invalid duty cycle value, should be between 0 and 65535")
108
109
# convert from 16-bit
110
duty_cycle /= 65535.0
0 commit comments