Method: Phidgets::TextLCD::TextLCDCustomCharacter#string_code

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

#string_codeString

Returns the character code associated with the custom character, or raises an error.

example

lcd.screens[0].rows[0].display_string = "#{lcd.custom_characters[0].string_code}"

Returns:

  • returns the character code associated with the custom character, or raises an error.



265
266
267
# File 'lib/phidgets-ffi/text_lcd.rb', line 265

def string_code
  eval('"' + "\\1#{@index}" + '"')  #ie, returns \10   - \17
end