Method: Phidgets::PowerGuard#setFanMode

Defined in:
ext/phidgets/phidgets_power_guard.c

#setFanMode(fan_mode) ⇒ Object Also known as: fan_mode=

The FanMode dictates the operating condition of the fan. Choose between on, off, or automatic (based on temperature). If the FanMode is set to automatic, the fan will turn on when the temperature reaches 70°C and it will remain on until the temperature falls below 55°C. If the FanMode is off, the device will still turn on the fan if the temperature reaches 85°C and it will remain on until it falls below 70°C.



16
17
18
19
# File 'ext/phidgets/phidgets_power_guard.c', line 16

VALUE ph_power_guard_set_fan_mode(VALUE self, VALUE mode) {
  ph_raise(PhidgetPowerGuard_setFanMode((PhidgetPowerGuardHandle)get_ph_handle(self), NUM2INT(mode)));
  return Qnil;
}