Sha256: fcf5484afeae7c42fda5b65e22dc7f776f051905050c284620cb0efc33a41047

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

require 'artoo'

connection :neurosky, :adaptor => :neurosky, :port => '/dev/rfcomm0'
device :neurosky, :driver => :neurosky, :interval => 0.1

def handle_eeg(sender, data)
  puts data
end

work do
  puts "Scanning..."
  on neurosky, :eeg => :handle_eeg
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
artoo-neurosky-0.2.0 examples/eeg.rb
artoo-neurosky-0.1.2 example/eeg.rb
artoo-neurosky-0.1.1 example/eeg.rb
artoo-neurosky-0.1.0 example/eeg.rb