Method: Phidgets::TextLCD::TextLCDCustomCharacter#set_custom_character

Defined in:
lib/phidgets-ffi/text_lcd.rb

#set_custom_character(var1, var2) ⇒ Array<Integer>[2]

Sets a custom character, or raises an error. The custom character is defined by two integers. See the product manual for more information. example

lcd.custom_characters[0].set_custom_character(949247, 536)

Parameters:

  • first_value (Integer)

    first value given by the customchar utility

  • second_value (Integer)

    second value given by teh customchar utility

Returns:

  • (Array<Integer>[2])

    returns the custom character, or raises an error.



255
256
257
258
# File 'lib/phidgets-ffi/text_lcd.rb', line 255

def set_custom_character(var1, var2)
    Klass.setCustomCharacter(@handle, @index + 8, var1, var2)
  [var1, var2]
end