mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fixed some layouting issues; Fixed type in device type name
Former-commit-id: d9bcb90ac57feac2e540bb9315f295bc678a854a
This commit is contained in:
parent
c77f45f221
commit
67f85de8c9
@ -1 +1 @@
|
|||||||
03fb2204d7c3a13dd4a2c5c55336c259bf314026
|
7079c4843fecd32e0914e10a06cf4fe99d89ab9d
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -35,6 +37,14 @@ public class BootSequencePanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Boot Sequence"));
|
setBorder(BorderFactory.createTitledBorder("Boot Sequence"));
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.GridLayout;
|
import java.awt.GridLayout;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.Box;
|
import javax.swing.Box;
|
||||||
@ -59,11 +61,20 @@ public class ColorPanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Color transform"));
|
setBorder(BorderFactory.createTitledBorder("Color transform"));
|
||||||
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
|
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
|
||||||
|
|
||||||
add(getRgbPanel());
|
add(getRgbPanel());
|
||||||
|
add(Box.createVerticalStrut(10));
|
||||||
add(getHsvPanel());
|
add(getHsvPanel());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,19 +151,18 @@ public class ColorPanel extends JPanel {
|
|||||||
private JPanel getHsvPanel() {
|
private JPanel getHsvPanel() {
|
||||||
if (mHsvTransformPanel == null) {
|
if (mHsvTransformPanel == null) {
|
||||||
mHsvTransformPanel = new JPanel();
|
mHsvTransformPanel = new JPanel();
|
||||||
mHsvTransformPanel.setBorder(BorderFactory.createTitledBorder("HSV"));
|
|
||||||
|
|
||||||
GroupLayout layout = new GroupLayout(mHsvTransformPanel);
|
GroupLayout layout = new GroupLayout(mHsvTransformPanel);
|
||||||
mHsvTransformPanel.setLayout(layout);
|
mHsvTransformPanel.setLayout(layout);
|
||||||
|
|
||||||
mSaturationAdjustLabel = new JLabel("Saturation");
|
mSaturationAdjustLabel = new JLabel("HSV Saturation gain");
|
||||||
mHsvTransformPanel.add(mSaturationAdjustLabel);
|
mHsvTransformPanel.add(mSaturationAdjustLabel);
|
||||||
|
|
||||||
mSaturationAdjustSpinner = new JSpinner(new SpinnerNumberModel(mColorConfig.mSaturationGain, 0.0, 1024.0, 0.01));
|
mSaturationAdjustSpinner = new JSpinner(new SpinnerNumberModel(mColorConfig.mSaturationGain, 0.0, 1024.0, 0.01));
|
||||||
mSaturationAdjustSpinner.addChangeListener(mChangeListener);
|
mSaturationAdjustSpinner.addChangeListener(mChangeListener);
|
||||||
mHsvTransformPanel.add(mSaturationAdjustSpinner);
|
mHsvTransformPanel.add(mSaturationAdjustSpinner);
|
||||||
|
|
||||||
mValueAdjustLabel = new JLabel("Value");
|
mValueAdjustLabel = new JLabel("HSV Value gain");
|
||||||
mHsvTransformPanel.add(mValueAdjustLabel);
|
mHsvTransformPanel.add(mValueAdjustLabel);
|
||||||
|
|
||||||
mValueAdjustSpinner = new JSpinner(new SpinnerNumberModel(mColorConfig.mValueGain, 0.0, 1024.0, 0.01));
|
mValueAdjustSpinner = new JSpinner(new SpinnerNumberModel(mColorConfig.mValueGain, 0.0, 1024.0, 0.01));
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -37,6 +39,14 @@ public class ColorSmoothingPanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Smoothing"));
|
setBorder(BorderFactory.createTitledBorder("Smoothing"));
|
||||||
|
|
||||||
|
@ -130,7 +130,6 @@ public class ConfigPanel extends JPanel {
|
|||||||
private JTabbedPane getSpecificationTabs() {
|
private JTabbedPane getSpecificationTabs() {
|
||||||
if (mSpecificationTabs == null) {
|
if (mSpecificationTabs == null) {
|
||||||
mSpecificationTabs = new JTabbedPane();
|
mSpecificationTabs = new JTabbedPane();
|
||||||
mSpecificationTabs.setPreferredSize(new Dimension(300,150));
|
|
||||||
|
|
||||||
mSpecificationTabs.addTab("Hardware", getHardwarePanel());
|
mSpecificationTabs.addTab("Hardware", getHardwarePanel());
|
||||||
mSpecificationTabs.addTab("Process", getProcessPanel());
|
mSpecificationTabs.addTab("Process", getProcessPanel());
|
||||||
@ -163,33 +162,32 @@ public class ConfigPanel extends JPanel {
|
|||||||
mHardwarePanel.add(new DevicePanel(ledString.mDeviceConfig));
|
mHardwarePanel.add(new DevicePanel(ledString.mDeviceConfig));
|
||||||
mHardwarePanel.add(new LedFramePanel(ledString.mLedFrameConfig));
|
mHardwarePanel.add(new LedFramePanel(ledString.mLedFrameConfig));
|
||||||
mHardwarePanel.add(new ImageProcessPanel(ledString.mProcessConfig));
|
mHardwarePanel.add(new ImageProcessPanel(ledString.mProcessConfig));
|
||||||
|
|
||||||
mHardwarePanel.add(Box.createVerticalGlue());
|
mHardwarePanel.add(Box.createVerticalGlue());
|
||||||
}
|
}
|
||||||
return mHardwarePanel;
|
return mHardwarePanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
private JPanel getProcessPanel() {
|
private JPanel getProcessPanel() {
|
||||||
if (mProcessPanel == null) {
|
if (mProcessPanel == null) {
|
||||||
mProcessPanel = new JPanel();
|
mProcessPanel = new JPanel();
|
||||||
|
|
||||||
mProcessPanel.setLayout(new BoxLayout(mProcessPanel, BoxLayout.Y_AXIS));
|
mProcessPanel.setLayout(new BoxLayout(mProcessPanel, BoxLayout.Y_AXIS));
|
||||||
|
|
||||||
mProcessPanel.add(new BootSequencePanel(ledString.mMiscConfig));
|
mProcessPanel.add(new BootSequencePanel(ledString.mMiscConfig));
|
||||||
mProcessPanel.add(new FrameGrabberPanel(ledString.mMiscConfig));
|
mProcessPanel.add(new FrameGrabberPanel(ledString.mMiscConfig));
|
||||||
mProcessPanel.add(new ColorSmoothingPanel(ledString.mColorConfig));
|
mProcessPanel.add(new ColorSmoothingPanel(ledString.mColorConfig));
|
||||||
mProcessPanel.add(new ColorPanel(ledString.mColorConfig));
|
mProcessPanel.add(new ColorPanel(ledString.mColorConfig));
|
||||||
|
mProcessPanel.add(Box.createVerticalGlue());
|
||||||
}
|
}
|
||||||
return mProcessPanel;
|
return mProcessPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
private JPanel getExternalPanel() {
|
private JPanel getExternalPanel() {
|
||||||
if (mExternalPanel == null) {
|
if (mExternalPanel == null) {
|
||||||
mExternalPanel = new JPanel();
|
mExternalPanel = new JPanel();
|
||||||
|
|
||||||
mExternalPanel.setLayout(new BoxLayout(mExternalPanel, BoxLayout.Y_AXIS));
|
mExternalPanel.setLayout(new BoxLayout(mExternalPanel, BoxLayout.Y_AXIS));
|
||||||
|
|
||||||
mExternalPanel.add(new XbmcPanel(ledString.mMiscConfig));
|
mExternalPanel.add(new XbmcPanel(ledString.mMiscConfig));
|
||||||
mExternalPanel.add(new InterfacePanel(ledString.mMiscConfig));
|
mExternalPanel.add(new InterfacePanel(ledString.mMiscConfig));
|
||||||
|
|
||||||
mExternalPanel.add(Box.createVerticalGlue());
|
mExternalPanel.add(Box.createVerticalGlue());
|
||||||
}
|
}
|
||||||
return mExternalPanel;
|
return mExternalPanel;
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -44,6 +46,14 @@ public class DevicePanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Device"));
|
setBorder(BorderFactory.createTitledBorder("Device"));
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -35,6 +37,14 @@ public class FrameGrabberPanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Frame Grabber"));
|
setBorder(BorderFactory.createTitledBorder("Frame Grabber"));
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -43,6 +45,14 @@ public class ImageProcessPanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Image Process"));
|
setBorder(BorderFactory.createTitledBorder("Image Process"));
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.BoxLayout;
|
import javax.swing.BoxLayout;
|
||||||
@ -43,8 +45,16 @@ public class InterfacePanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("External interfaces"));
|
//setBorder(BorderFactory.createTitledBorder("External interfaces"));
|
||||||
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
|
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
|
||||||
|
|
||||||
add(getJsonPanel());
|
add(getJsonPanel());
|
||||||
@ -57,7 +67,7 @@ public class InterfacePanel extends JPanel {
|
|||||||
private JPanel getJsonPanel() {
|
private JPanel getJsonPanel() {
|
||||||
if (mJsonPanel == null) {
|
if (mJsonPanel == null) {
|
||||||
mJsonPanel = new JPanel();
|
mJsonPanel = new JPanel();
|
||||||
mJsonPanel.setBorder(BorderFactory.createTitledBorder("JSON"));
|
mJsonPanel.setBorder(BorderFactory.createTitledBorder("Json server"));
|
||||||
|
|
||||||
mJsonCheck = new JCheckBox("Enabled");
|
mJsonCheck = new JCheckBox("Enabled");
|
||||||
mJsonCheck.setSelected(mMiscConfig.mJsonInterfaceEnabled);
|
mJsonCheck.setSelected(mMiscConfig.mJsonInterfaceEnabled);
|
||||||
@ -96,7 +106,7 @@ public class InterfacePanel extends JPanel {
|
|||||||
private JPanel getProtoPanel() {
|
private JPanel getProtoPanel() {
|
||||||
if (mProtoPanel == null) {
|
if (mProtoPanel == null) {
|
||||||
mProtoPanel = new JPanel();
|
mProtoPanel = new JPanel();
|
||||||
mProtoPanel.setBorder(BorderFactory.createTitledBorder("PROTO"));
|
mProtoPanel.setBorder(BorderFactory.createTitledBorder("Proto server"));
|
||||||
|
|
||||||
mProtoCheck = new JCheckBox("Enabled");
|
mProtoCheck = new JCheckBox("Enabled");
|
||||||
mProtoCheck.setSelected(mMiscConfig.mProtoInterfaceEnabled);
|
mProtoCheck.setSelected(mMiscConfig.mProtoInterfaceEnabled);
|
||||||
@ -136,7 +146,7 @@ public class InterfacePanel extends JPanel {
|
|||||||
private JPanel getBoblightPanel() {
|
private JPanel getBoblightPanel() {
|
||||||
if (mBoblightPanel == null) {
|
if (mBoblightPanel == null) {
|
||||||
mBoblightPanel = new JPanel();
|
mBoblightPanel = new JPanel();
|
||||||
mBoblightPanel.setBorder(BorderFactory.createTitledBorder("Boblight"));
|
mBoblightPanel.setBorder(BorderFactory.createTitledBorder("Boblight server"));
|
||||||
|
|
||||||
mBoblightCheck = new JCheckBox("Enabled");
|
mBoblightCheck = new JCheckBox("Enabled");
|
||||||
mBoblightCheck.setSelected(mMiscConfig.mBoblightInterfaceEnabled);
|
mBoblightCheck.setSelected(mMiscConfig.mBoblightInterfaceEnabled);
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -47,6 +49,14 @@ public class LedFramePanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("Construction"));
|
setBorder(BorderFactory.createTitledBorder("Construction"));
|
||||||
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package org.hyperion.hypercon.gui;
|
package org.hyperion.hypercon.gui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.beans.Transient;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.GroupLayout;
|
import javax.swing.GroupLayout;
|
||||||
@ -48,6 +50,14 @@ public class XbmcPanel extends JPanel {
|
|||||||
initialise();
|
initialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transient
|
||||||
|
public Dimension getMaximumSize() {
|
||||||
|
Dimension maxSize = super.getMaximumSize();
|
||||||
|
Dimension prefSize = super.getPreferredSize();
|
||||||
|
return new Dimension(maxSize.width, prefSize.height);
|
||||||
|
}
|
||||||
|
|
||||||
private void initialise() {
|
private void initialise() {
|
||||||
setBorder(BorderFactory.createTitledBorder("XBMC Checker"));
|
setBorder(BorderFactory.createTitledBorder("XBMC Checker"));
|
||||||
|
|
||||||
|
@ -26,11 +26,11 @@ 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', 'ldp6803', 'test' and 'none')\n");
|
strBuf.append("\t/// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'lpd6803', 'sedu', '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 or /dev/ttyS0')\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");
|
||||||
strBuf.append("\t/// * 'rate' : The baudrate of the output to the device (only applicable for 'ws2801')\n");
|
strBuf.append("\t/// * 'rate' : The baudrate of the output to the device\n");
|
||||||
strBuf.append("\t/// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).\n");
|
strBuf.append("\t/// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).\n");
|
||||||
|
|
||||||
strBuf.append("\t\"device\" :\n");
|
strBuf.append("\t\"device\" :\n");
|
||||||
|
@ -7,7 +7,7 @@ public enum DeviceType {
|
|||||||
/** WS2801 Led String device with one continuous shift-register (1 byte per color-channel) */
|
/** 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 Led String device with one continuous shift-register (5 bits per color channel)*/
|
||||||
ldp6803("LDP6803"),
|
lpd6803("LPD6803"),
|
||||||
/** SEDU LED device */
|
/** SEDU LED device */
|
||||||
sedu("SEDU"),
|
sedu("SEDU"),
|
||||||
/** Test device for writing color values to file-output */
|
/** Test device for writing color values to file-output */
|
||||||
|
@ -49,7 +49,7 @@ public class MiscConfig {
|
|||||||
public int mProtoPort = 19445;
|
public int mProtoPort = 19445;
|
||||||
|
|
||||||
/** Flag indicating that the PROTO interface is enabled */
|
/** Flag indicating that the PROTO interface is enabled */
|
||||||
public boolean mBoblightInterfaceEnabled = true;
|
public boolean mBoblightInterfaceEnabled = false;
|
||||||
/** The TCP port at which the Protobuf server is listening for incoming connections */
|
/** The TCP port at which the Protobuf server is listening for incoming connections */
|
||||||
public int mBoblightPort = 19333;
|
public int mBoblightPort = 19333;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user