Class: Triggerino::Display

Inherits:
Object
  • Object
show all
Defined in:
lib/triggerino/display.rb

Instance Method Summary collapse

Constructor Details

#initialize(lcd) ⇒ Display

Returns a new instance of Display.



3
4
5
# File 'lib/triggerino/display.rb', line 3

def initialize lcd
  @lcd = lcd
end

Instance Method Details

#update(value) ⇒ Object



7
8
9
10
# File 'lib/triggerino/display.rb', line 7

def update value
  @lcd.clear
  @lcd.puts value.to_s
end