Sha256: 0eca7cde19b1f81e8b3f0457eeab39001d9f98302f937e0b3509b5ae60be2cec

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

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

class TestArduinoFirmata < MiniTest::Unit::TestCase

  def setup
    @arduino = ArduinoFirmata.connect
  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

7 entries across 7 versions & 1 rubygems

Version Path
arduino_firmata-0.1.1 test/test_arduino_firmata.rb
arduino_firmata-0.1.0 test/test_arduino_firmata.rb
arduino_firmata-0.0.9 test/test_arduino_firmata.rb
arduino_firmata-0.0.8 test/test_arduino_firmata.rb
arduino_firmata-0.0.7 test/test_arduino_firmata.rb
arduino_firmata-0.0.6 test/test_arduino_firmata.rb
arduino_firmata-0.0.5 test/test_arduino_firmata.rb