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