Personal tools
Namespaces

Variants
Actions

Ledset

From NiftyWiki
Jump to: navigation, search
Home Documentation Download Support Showroom Links

Flattr-badge-large.png

Abstract

Set brightness of one specific LED. This is mainly used for testing new hardware-plugins and debugging


Installation

ledset will be installed together with libniftyled


Usage

Usage: ./src/ledset [options]

Valid options:
         --help                 -h            This help text
         --plugin-help          -p            List of installed plugins + information
         --config <file>        -c <file>     Load this config file
         --pos <pos>            -P <pos>      Position of LED in chain
         --value <value>        -V <value>    Brightness value (0 = lowest brightness)
         --loglevel <level>     -l <level>    Only show messages with loglevel <level>
         --interactive          -i            Interactive tile-mapper


Valid loglevels:
         verynoisy noisy debug verbose info warning error


Ledset parses an LED-setup XML file (default: ~/.ledset.xml). This can either be a full setup with all mapping data, or a minimal setup that just defines the hardware plugin and the amount of LEDs connected to the hardware. It provides two different modes:

  • In normal mode, it sets the brightness of one LED at position pos to value.
  • In interactive mode, it is a simple CLI replacement of niftyconf, so the user can enter the color (component), the x-coordinate and the y-coordinate for every single LED. In the end, a valid XML Tile definition is printed to stdout. Just enter the requested values for the currently lit LED to generate a tile-definition.

Examples

Interactive mode for 48 LED Tile with stride of 16:

  • Config file:
<?xml version="1.0" encoding="UTF-8"?>
<niftyled>
  <hardware name="nlo01" plugin="niftylino" id="*" stride="16">
    <chain ledcount="48" pixel_format="RGB u8"/>
  </hardware>
</niftyled>
  • Command:
ledset -i


Set LED #5 to 255 in 16 LED setup (one hardware adapter):

  • Config file:
<?xml version="1.0" encoding="UTF-8"?>
<niftyled>
  <hardware name="dummy01" plugin="dummy" id="*" >
    <chain ledcount="16" pixel_format="RGB u8"/>
  </hardware>
</niftyled>
  • Command:
ledset -p 5 -v 255


Set LED #32 to 65535 in 64 LED setup (two hardware adapters):

  • Config file:
<?xml version="1.0" encoding="UTF-8"?>
<niftyled>
  <hardware name="dummy01" plugin="dummy" id="*">
    <chain ledcount="32" pixel_format="RGB u16"/>
  </hardware
  <hardware name="dummy02" plugin="dummy" id="*">
    <chain ledcount="32" pixel_format="RGB u16"/>
  </hardware>
</niftyled>
  • Command:
ledset -p 32 -v 65535


Issues

Please report anything via the issue tracker.


Commandline testing tool to manually light LEDs in a niftyled setup
http://wiki.niftylight.de/images/c/c9/Logo.png
ledset
https://github.com/niftylight/niftyled/
The main purpose of ledset is testing & debugging newly created setups. It is part of the libniftyled package
niftylight GmbH
2006-2014
hardware
led
niftyled
https://github.com/niftylight/niftyled/releases
linux,windows,osx
libniftyled