require 'bundler/setup'
require 'firmata'

board = Firmata::Board.new('/dev/tty.usbmodemfd13131')

board.connect

pin_number = 3
rate = 0.5

10.times do
  board.digital_write pin_number, Firmata::Board::HIGH
  puts '+'
  board.delay rate

  board.digital_write pin_number, Firmata::Board::LOW
  puts '-'
  board.delay rate
end
require 'bundler/setup'
require 'firmata'

board = Firmata::Board.new('/dev/tty.usbmodemfa131')

board.connect

pin_number = 3
rate = 0.5

10.times do
  board.digital_write pin_number, Firmata::Board::HIGH
  puts '+'
  board.delay rate

  board.digital_write pin_number, Firmata::Board::LOW
  puts '-'
  board.delay rate
end
Use correct serialport for demo.
Use correct serialport for demo.
