mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Add a pwm option to the RGBLED and Motor constructors
...along with the other necessary changes required, to allow them to optionally be used with non-PWM-capable pins
This commit is contained in:
@@ -5,6 +5,7 @@ digraph classes {
|
||||
node [shape=rect, style=filled, color="#298029", fontname=Sans, fontcolor="#ffffff", fontsize=10];
|
||||
edge [arrowhead=onormal, style=dashed];
|
||||
|
||||
RGBLED->LED;
|
||||
RGBLED->PWMLED;
|
||||
LEDBoard->LED;
|
||||
LEDBoard->PWMLED;
|
||||
@@ -16,5 +17,6 @@ digraph classes {
|
||||
TrafficLightsBuzzer->Button;
|
||||
|
||||
Robot->Motor;
|
||||
Motor->DigitalOutputDevice;
|
||||
Motor->PWMOutputDevice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user