def play_tone frequency, duration
      raise ArgumentError.new("Frequency must be between 200-1400Hz; got #{frequency}") if frequency < 200 || frequency > 1400
      transmit(
        DirectOps::NO_RESPONSE,
        DirectOps::PLAYTONE,
        word(frequency),
        word(duration)
      )
    end
def play_tone frequency, duration
      raise ArgumentError.new("Frequency must be between 200-1400Hz; got #{frequency}") if frequency < 200 || frequency > 1400
      transmit(
        DirectOps::NO_RESPONSE,
        DirectOps::PLAYTONE,
        word(frequency),
        word(duration)
      )
    end
@param [LegoNXT::UsbConnection, LegoNXT::SerialConnection] connection The connection object.
 Plays a tone.

 @param [Integer] frequency Range: 200-1400Hz
 @param [Integer] duration in milliseconds (1/1000 of a second)
 @return [nil]