mirror of
				https://github.com/KevinMidboe/fanController.git
				synced 2025-10-29 17:40:22 +00:00 
			
		
		
		
	Other misc changes to python scripts and init pushed
This commit is contained in:
		
							
								
								
									
										9
									
								
								led-csid0-off.py
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								led-csid0-off.py
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import CHIP_IO.GPIO as GPIO     #import the GPIO library | ||||
|  | ||||
| GPIO.setup("CSID0", GPIO.OUT)   #set CSID0 as an output | ||||
| GPIO.output("CSID0", GPIO.LOW) #set CSID0 (LED) LOW (Off) | ||||
|  | ||||
| f = open( 'public/state.txt', 'w' ) | ||||
| f.write('off') | ||||
| f.close() | ||||
		Reference in New Issue
	
	Block a user