/// <summary> /// Creates an instance of the correct type depending on the Navio model. /// </summary> public NavioFramDevice(NavioHardwareModel model) { // Create model specific device switch (model) { case NavioHardwareModel.Navio: Hardware = new Mb85rc04vDevice(I2cAddress, true, true); break; case NavioHardwareModel.NavioPlus: Hardware = new Mb85rc256vDevice(I2cAddress, true, true); break; default: throw new NotImplementedException(); } }