http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/ea1e8d1228db50c9776998ff50d270af52b35540/mmgen/led.py
If not, see <http://www.gnu.org/licenses/>. """ led: Control the LED on a single-board computer """ import os,threading from collections import namedtuple from .util import msg,msg_r,fmt,die class LEDControl: binfo = namedtuple('board_info',['name','status','trigger','trigger_states']) boards = { 'raspi_pi': binfo( name = 'Raspberry Pi', status = '/sys/class/leds/led0/brightness', trigger = '/sys/class/leds/led0/trigger', trigger_states = ('none','mmc0') ), 'orange_pi': binfo( name ...