mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			173 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			173 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from bluedot import BlueDot
 | |
| from gpiozero import LED
 | |
| 
 | |
| bd = BlueDot()
 | |
| led = LED(17)
 | |
| 
 | |
| while True:
 | |
|     bd.wait_for_press()
 | |
|     led.on()
 | |
|     bd.wait_for_release()
 | |
|     led.off()
 |