/// <summary> /// Default ctor /// </summary> public LocoIOConfig() { var pins = new PinConfig[16]; for (int i = 0; i < 16; i++) { pins[i] = new PinConfig(i + 1); } sv0 = new SVConfig(0); sv1 = new SVConfig(1); sv2 = new SVConfig(2); this.pins = new PinConfigList(pins); connectors = new ConnectorConfig[2]; connectors[0] = new ConnectorConfig(pins.Take(8).ToArray()); connectors[1] = new ConnectorConfig(pins.Skip(8).ToArray()); }
/// <summary> /// Default ctor /// </summary> internal ConnectorConfig(PinConfig[] pins) { this.pins = new PinConfigList(pins); }