41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using Aurora.Api.DataType;
|
|
using Aurora.Api.Devices;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO.Ports;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AuroraLight.LvsPn
|
|
{
|
|
class LvsPnLightConfig : LightConfig
|
|
{
|
|
public bool UseNormalizedBrightness { get; set; } = true;
|
|
|
|
public LvsPnLightConfig()
|
|
{
|
|
ConnConfig = new SerialConnConfig() {
|
|
BaudRate = 9600,
|
|
DataBits = 8,
|
|
StopBits = StopBits.One,
|
|
Parity = Parity.None,
|
|
PortNum = 1
|
|
};
|
|
}
|
|
|
|
public static new LvsPnLightConfig GetDefaultConfig()
|
|
{
|
|
var config = new LvsPnLightConfig();
|
|
config.ConnConfig = new SerialConnConfig() {
|
|
BaudRate = 9600,
|
|
DataBits = 8,
|
|
StopBits = StopBits.One,
|
|
Parity = Parity.None,
|
|
PortNum = 1
|
|
};
|
|
return config;
|
|
}
|
|
}
|
|
}
|