# File lib/commands/light_sensor.rb, line 66
  def set_mode
    @generate_light ? mode = NXTComm::LIGHT_ACTIVE : mode = NXTComm::LIGHT_INACTIVE
    @nxt.set_input_mode(
      NXTComm.const_get("SENSOR_#{@port}"),
      mode,
      NXTComm::PCTFULLSCALEMODE
    )
  end