Fix LED paths for more recent pi-image operating systems. FossilOrigin-Name: 95bda0bf25a4c8760c07217545106e4a5116a2a6e01463d5189551eb83bfa0f7
21 lines
368 B
Ruby
Executable file
21 lines
368 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
|
|
|
|
$stderr.sync = true
|
|
$stdout.sync = true
|
|
theremin.start
|
|
|