http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/7539c4d40d53bb8530b6c65c935a401a24154c33/mmgen/led.py
If not, see <http://www.gnu.org/licenses/>. """ led: Control the LED on a single-board computer """ import sys, os, threading from collections import namedtuple from subprocess import run from .util import msg, msg_r, die, have_sudo from .color import blue, orange 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 =...