lib/artoo/drivers/digispark.rb
require 'artoo/drivers/driver'
module Artoo
module Drivers
# The digispark driver behaviors
class Digispark < Driver
# Start driver and any required connections
def start_driver
begin
every(interval) do
handle_message_events
end
super
rescue Exception => e
Logger.error "Error starting Digispark driver!"
Logger.error e.message
Logger.error e.backtrace.inspect
end
end
def handle_message_events
end
end
end
end