Stuff working well with a single 3-pin range finder. FossilOrigin-Name: 483d8caaef350827c026d7c234b026e9e720d26a7e27e54b0436f60b099a0ab9
19 lines
328 B
Ruby
Executable file
19 lines
328 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
# vim: set noet sta sw=4 ts=4 :
|
|
|
|
$LOAD_PATH << './lib'
|
|
require 'pathname'
|
|
require 'configurability'
|
|
require 'theremin'
|
|
|
|
Configurability::Config.load( 'config.yml' ).install
|
|
|
|
theremin = Theremin.new
|
|
|
|
Signal.trap( "INT" ) do
|
|
puts "\n\nShutting down..."
|
|
theremin.stop if theremin.running
|
|
end
|
|
|
|
theremin.start
|
|
|