Sha256: 5118ba14e92f3e543de559faa7ebf29ac98cd989b144c184c880e5e73e0e5b57

Contents?: true

Size: 457 Bytes

Versions: 9

Compression:

Stored size: 457 Bytes

Contents

require 'tamashii/agent/event'
require 'tamashii/agent/handler/base'

module Tamashii
  module Agent
    module Handler
      class LCD < Base
        def resolve(data)
          case type
          when Type::LCD_MESSAGE
            @master.send_event(Event.new(Event::LCD_MESSAGE, data))
          when Type::LCD_SET_IDLE_TEXT
            @master.send_event(Event.new(Event::LCD_SET_IDLE_TEXT, data))
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tamashii-agent-0.3.0 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.8 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.7 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.6 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.5 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.4 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.3 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.1 lib/tamashii/agent/handler/lcd.rb
tamashii-agent-0.2.0 lib/tamashii/agent/handler/lcd.rb