mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Merge branch 'PWMLED_pulse' of https://github.com/lurch/python-gpiozero into lurch-PWMLED_pulse
This commit is contained in:
@@ -394,6 +394,11 @@ class PWMOutputDevice(OutputDevice):
|
|||||||
self._blink_thread.join()
|
self._blink_thread.join()
|
||||||
self._blink_thread = None
|
self._blink_thread = None
|
||||||
|
|
||||||
|
def pulse(
|
||||||
|
self, on_time=0, off_time=0, fade_in_time=1, fade_out_time=1,
|
||||||
|
n=None, background=True):
|
||||||
|
self.blink(on_time, off_time, fade_in_time, fade_out_time, n, background)
|
||||||
|
|
||||||
def _stop_blink(self):
|
def _stop_blink(self):
|
||||||
if self._blink_thread:
|
if self._blink_thread:
|
||||||
self._blink_thread.stop()
|
self._blink_thread.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user