http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/2449baed2c2f35f43140dc06da1be03f3f51922b/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 ...