Sha256: a793447cdbc4b01ae407a53eff155c3b7ff87cefcaf50e4b7cdf10968cc46e7e
Contents?: true
Size: 356 Bytes
Versions: 7
Compression:
Stored size: 356 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path '../lib', File.dirname(__FILE__) require 'rubygems' require 'arduino_firmata' arduino = ArduinoFirmata.connect ARGV.shift puts "firmata version #{arduino.version}" arduino.pin_mode 13, ArduinoFirmata::OUTPUT stat = true loop do puts stat arduino.digital_write 13, stat stat = !stat sleep 0.1 end
Version data entries
7 entries across 7 versions & 1 rubygems