Sha256: 5f63fd58d2c415550285f98606cc3fd2bc73409d0ceb59d393b42d451b7b00a4

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

require File.expand_path 'test_helper', File.dirname(__FILE__)

class TestArduinoFirmata < MiniTest::Unit::TestCase

  def setup
    @arduino = ArduinoFirmata.connect ENV['ARDUINO']
  end

  def test_arduino
    assert @arduino.version > '2.0'
    @arduino.close
  end

  def test_analog_read
    0.upto(5).each do |pin|
      assert 0 < @arduino.analog_read(pin)
    end
    @arduino.close
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arduino_firmata-0.1.6 test/test_arduino_firmata.rb
arduino_firmata-0.1.5 test/test_arduino_firmata.rb
arduino_firmata-0.1.4 test/test_arduino_firmata.rb
arduino_firmata-0.1.3 test/test_arduino_firmata.rb
arduino_firmata-0.1.2 test/test_arduino_firmata.rb