added comments to test script
@@ -6,8 +6,8 @@ for pin_name in dir(board):
try:
p = pulseio.PWMOut(pin)
p.deinit()
- print("PWM on:", pin_name)
- except ValueError:
- print("No PWM on:", pin_name)
- except RuntimeError:
- print("Timers in use:", pin_name)
+ print("PWM on:", pin_name) # Prints the valid, PWM-capable pins!
+ except ValueError: # This is the error that comes up when the pin is invalid.
+ print("No PWM on:", pin_name) # Prints the invalid pins.
+ except RuntimeError: # This is the error the comes up when there is a timer conflict.
+ print("Timers in use:", pin_name) # Prints the timer conflict pins.
