Added the ldp6803 led device to HyperCon

Former-commit-id: 899bc2f50974ed22948a515f2839a6c14570d74d
This commit is contained in:
T. van der Zwan 2013-11-02 16:06:54 +01:00
parent 491dcc706b
commit fb23befdee
3 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
35cdefd478667e83a1e20cda67cef4763b59ec25 6f2aab422e3d1b03080de92c3e3aea9b270a3e9b

View File

@ -26,7 +26,7 @@ public class DeviceConfig {
strBuf.append("\t/// Device configuration contains the following fields: \n"); strBuf.append("\t/// Device configuration contains the following fields: \n");
strBuf.append("\t/// * 'name' : The user friendly name of the device (only used for display purposes)\n"); strBuf.append("\t/// * 'name' : The user friendly name of the device (only used for display purposes)\n");
strBuf.append("\t/// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'test' and 'none')\n"); strBuf.append("\t/// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'ldp6803', 'test' and 'none')\n");
strBuf.append("\t/// * 'output' : The output specification depends on selected device\n"); strBuf.append("\t/// * 'output' : The output specification depends on selected device\n");
strBuf.append("\t/// - 'ws2801' this is the device (eg '/dev/spidev0.0')\n"); strBuf.append("\t/// - 'ws2801' this is the device (eg '/dev/spidev0.0')\n");
strBuf.append("\t/// - 'test' this is the file used to write test output (eg '/home/pi/hyperion.out')\n"); strBuf.append("\t/// - 'test' this is the file used to write test output (eg '/home/pi/hyperion.out')\n");

View File

@ -4,8 +4,10 @@ package org.hyperion.hypercon.spec;
* Enumeration of known device types * Enumeration of known device types
*/ */
public enum DeviceType { public enum DeviceType {
/** WS2801 Led String device with one continuous shift-register */ /** WS2801 Led String device with one continuous shift-register (1 byte per color-channel) */
ws2801("WS2801"), ws2801("WS2801"),
/** LDP6803 Led String device with one continuous shift-register (5 bits per color channel)*/
ldp6803("LDP6803"),
/** Test device for writing color values to file-output */ /** Test device for writing color values to file-output */
test("Test"), test("Test"),
/** No device, no output is generated */ /** No device, no output is generated */