Browse Source

initial commit

master
commit
c70d8dc813
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      pyLED.py

+ 16
- 0
pyLED.py View File

@ -0,0 +1,16 @@
#!/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")

Loading…
Cancel
Save