2
This commit is contained in:
		
							parent
							
								
									70dcc87c88
								
							
						
					
					
						commit
						0d4efc19d9
					
				
					 4 changed files with 52 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								1/1.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								1/1.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| #!/bin/python3 | ||||
| 
 | ||||
| import RPi.GPIO as GPIO | ||||
| from time import sleep | ||||
| 
 | ||||
| GPIO.setwarnings(False) | ||||
| 
 | ||||
| GPIO.setmode(GPIO.BCM) | ||||
| GPIO.setup(14, GPIO.OUT) | ||||
| 
 | ||||
| GPIO.output(14, 1) | ||||
| sleep(2) | ||||
| GPIO.output(14, 0) | ||||
| sleep(2) | ||||
| GPIO.output(14, 1) | ||||
| sleep(2) | ||||
| GPIO.output(14, 0) | ||||
							
								
								
									
										13
									
								
								1/2.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								1/2.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| #!/bin/python3 | ||||
| 
 | ||||
| import RPi.GPIO as GPIO | ||||
| from time import sleep | ||||
| 
 | ||||
| GPIO.setwarnings(False) | ||||
| 
 | ||||
| GPIO.setmode(GPIO.BCM) | ||||
| GPIO.setup(14, GPIO.OUT) | ||||
| GPIO.setup(15, GPIO.IN) | ||||
| 
 | ||||
| GPIO.output(14, GPIO.input(15)) | ||||
| 
 | ||||
		Reference in a new issue