You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
393 B

#!/usr/bin/python
import sys
LED3_PATH = "/sys/class/leds/beaglebone:green:usr3"
def write2LED(fileName, value, path=LED3_PATH):
"""This function writes the passed value to the file in the path"""
fo = open(path + filename,"w")
fo.write(value)
fo.close()
return
def removeTrigger():
write2LED("/trigger", "none")
return
print("Starting the LED Python Script")