| 
																	
																	
																	
																 | 
																@ -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")  |