Class: Triggerino::Display
- Inherits:
-
Object
- Object
- Triggerino::Display
- Defined in:
- lib/triggerino/display.rb
Instance Method Summary collapse
-
#initialize(lcd) ⇒ Display
constructor
A new instance of Display.
- #update(value) ⇒ Object
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 |