Defcon Kekekekekakl (blog)

27Jun/060

wrled — manipulates the LED

Get the source file here..

/*
 * wrled -- manipulates the LED's of PCEngines WRAP
 * Copyright (C) 2006 Jon Langseth
 *
 * This code does not read or manipulate the switch
 * of the board at all, it only manipulates the LEDs.
 *
 * You can choose to set/unset one or more individual leds
 * by using the -1, -2 and -3 options, or you can manipulate
 * all LEDs at once using options -a, -s or -b.
 * -1, -2, -3 and -a takes mandatory boolean parameters
 * turning individual or all LEDs on (1) or off (0).
 * -s and -b takes mandatory integer parameters in the
 * range 1 through 9, and either blinks or "scrolls" the
 * LEDs for the number of seconds the parameter specifies.
 *
 * Code initially started as a modification of wrap-led
 * by Michael Hanselmann (C) 2006, but has changed drastically
 * from it's base. Some 10-20 lines are simmilar in this version.
 * Thanks for the help understanding the WRAP LED "interface".
 *
 * Oh, yeah, final note. The code is somewhat wide! The widest line
 * ends its comment at column 112..
 *
 * ------------------   LICENSE  ----------------------------------
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

Get the source file here..

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.