Skip to content
Library for working with Opticon scanners
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
drivers/linux
lib
refurbs
Gemfile
Gemfile.lock
LICENSE
README.md
opticon_scanner.gemspec

README.md

Opticon Ruby

require 'opticon_scanner'
opticon = Opticon.new '/dev/ttyUSB0' #COM0 on windows
puts opticon.run :get_settings
10.times { opticon.run :good_beep }
3.times { opticon.run :error_beep }
opticon.run :trigger

opticon.run :enable_presentation_mode

#Finding scanners

Opticon.search
opticon.each do |scanner|
  scanner.run_batch do
    run :clear_memory
    run :set_time, Time.now
    run :enable_presentation_mode
  end
end
You can’t perform that action at this time.