35 lines
901 B
C#
35 lines
901 B
C#
using Aurora.Api.Devices;
|
|
using System.IO.Ports;
|
|
|
|
namespace AuroraLight.LFINE
|
|
{
|
|
internal class LCPLightConfig : LightConfig
|
|
{
|
|
public LCPLightConfig()
|
|
{
|
|
ConnConfig = new SerialConnConfig() {
|
|
PortNum = 1,
|
|
BaudRate = 19200,
|
|
Parity = Parity.None,
|
|
StopBits = StopBits.One,
|
|
DataBits = 8,
|
|
ReadTimeout = 500
|
|
};
|
|
}
|
|
|
|
public static new LCPLightConfig GetDefaultConfig()
|
|
{
|
|
var config = new LCPLightConfig();
|
|
config.ConnConfig = new SerialConnConfig() {
|
|
PortNum = 1,
|
|
BaudRate = 19200,
|
|
Parity = Parity.None,
|
|
StopBits = StopBits.One,
|
|
DataBits = 8,
|
|
ReadTimeout = 500
|
|
};
|
|
return config;
|
|
}
|
|
}
|
|
}
|