class Tinkerforge::BrickletLCD128x64

Public Instance Methods

backlight() click to toggle source

Returns the current setting for the backlight (0..100).

# File lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.rb, line 6
def backlight
  get_display_configuration[1]
end
backlight=(brightness) click to toggle source

Sets the brightness of the backlight (0..100).

# File lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.rb, line 11
def backlight=(brightness)
  state = get_display_configuration
  state[1] = brightness.to_i
  set_display_configuration *state
end
blackout() click to toggle source

Switches off the backlight.

# File lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.rb, line 18
def blackout
  self.backlight = 0
  true
end
clear() click to toggle source

Clears the display, including the GUI.

# File lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.rb, line 24
def clear
  clear_display
  remove_all_gui
end