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

4 years ago
  1. #!/usr/bin/python
  2. import sys
  3. LED3_PATH = "/sys/class/leds/beaglebone:green:usr3"
  4. def write2LED(fileName, value, path=LED3_PATH):
  5. """This function writes the passed value to the file in the path"""
  6. fo = open(path + filename,"w")
  7. fo.write(value)
  8. fo.close()
  9. return
  10. def removeTrigger():
  11. write2LED("/trigger", "none")
  12. return
  13. print("Starting the LED Python Script")