Other misc changes to python scripts and init pushed

This commit is contained in:
2017-01-29 18:36:36 +01:00
parent d24067b5e0
commit 48f27a27a5
297 changed files with 47322 additions and 0 deletions

9
led-csid0-off.py Executable file
View 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()