Sha256: 98c48a79aeb6895522564e8e303ccb0e8211352a25129e26e75b2149d9006585
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
require 'bundler/setup' require 'firmata' require 'socket' sp = TCPSocket.open 'localhost', 4567 #sp = '/dev/tty.usbserial-A700636n' board = Firmata::Board.new(sp) 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hybridgroup-firmata-0.2.0 | examples/blink_led.rb |