theremin-pi/theremin/run
mahlon 74bfdfac57 Add random phrases when an optional pi camera detects motion.
Fix LED paths for more recent pi-image operating systems.

FossilOrigin-Name: 95bda0bf25a4c8760c07217545106e4a5116a2a6e01463d5189551eb83bfa0f7
2023-05-24 03:08:39 +00:00

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