mirror of
https://github.com/KevinMidboe/fanController.git
synced 2025-10-29 17:40:22 +00:00
10 lines
257 B
Python
Executable File
10 lines
257 B
Python
Executable File
#!/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()
|