Class: I2C::Drivers::LCD::Display::Cursor
- Inherits:
-
Object
- Object
- I2C::Drivers::LCD::Display::Cursor
- Defined in:
- lib/i2c/drivers/lcd/display.rb
Instance Method Summary collapse
-
#initialize(display) ⇒ Cursor
constructor
A new instance of Cursor.
- #off ⇒ Object
- #on ⇒ Object
Constructor Details
#initialize(display) ⇒ Cursor
Returns a new instance of Cursor.
148 149 150 |
# File 'lib/i2c/drivers/lcd/display.rb', line 148 def initialize(display) @display = display end |
Instance Method Details
#off ⇒ Object
156 157 158 |
# File 'lib/i2c/drivers/lcd/display.rb', line 156 def off @display.write(COMMAND_DISPLAYCONTROL | FLAG_CURSOROFF) end |
#on ⇒ Object
152 153 154 |
# File 'lib/i2c/drivers/lcd/display.rb', line 152 def on @display.write(COMMAND_DISPLAYCONTROL | FLAG_CURSORON) end |