mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Blink defaults to 1 second on/off
This commit is contained in:
		| @@ -24,7 +24,7 @@ class LED(OutputDevice): | ||||
|         super(LED, self).__init__(pin) | ||||
|         self._blink_thread = None | ||||
|  | ||||
|     def blink(self, on_time, off_time): | ||||
|     def blink(self, on_time=1, off_time=1): | ||||
|         self._stop_blink() | ||||
|         self._blink_thread = GPIOThread(target=self._blink_led, args=(on_time, off_time)) | ||||
|         self._blink_thread.start() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user