Method: Phidgets::CurrentInput#setPowerSupply

Defined in:
ext/phidgets/phidgets_current_input.c

#setPowerSupply(power_supply) ⇒ Object Also known as: power_supply=

Choose the power supply voltage. Set this to the voltage specified in the attached sensor’s data sheet to power it. Set to POWER_SUPPLY_OFF to turn off the supply to save power.



63
64
65
66
# File 'ext/phidgets/phidgets_current_input.c', line 63

VALUE ph_current_input_set_power_supply(VALUE self, VALUE power_supply) {
  ph_raise(PhidgetCurrentInput_setPowerSupply((PhidgetCurrentInputHandle)get_ph_handle(self), NUM2INT(power_supply)));
  return Qnil;
}