setPowerSupply method

void setPowerSupply(
  1. PowerSupply supply
)

Implementation

void setPowerSupply(PowerSupply supply) {
  try {
    bindings.voltageInputSetPowerSupply(_handle!, supply.value);
  } catch (e) {
    throw PhidgetException('An error occurred setting the power supply: $e');
  }
}