hw-lcd-char-display (liblcd-char-display.la :: lcd_char_display_component_library)

Synopsis:

Simulates a dot matrix LCD display, using curses (a cursor control library) to manage the graphics inside a text window.


Functionality:

Modelling:

The LCD display model is somewhat abstracted from the physical device:

Behaviors
configuration

The width and height attributes set the display size in units of characters. For example, the default values are 80 and 24 for width and height, respectively. This is the size of a standard CRT window.

display

See discussion of the FR and row-col pins in Modeling section above.

SID Conventions
functional component supported

This is a functional component.

Save/restore supported

Save/restore is supported.

Triggerpoint supported

Triggerpoint support is available on all three input pins.


Environment:

Related components

The LCD display is typically connected to an LCD controller. The following configuration file segment shows how the hw-lcd-hd44780u LCD controller can be connected to the display:

      new hw-lcd-hd44780u-a00 lcd	# Standard Japanese font
      new hw-lcd-char-display display
      
      # display size is in pixels - ie. font-width*display-height
      set display width 40		# 8 chars X 5 pixels per char
      set display height 8		# single line of 8 pixels

      # connect the LCD to the display
      connect-pin lcd row-col -> display row-col
      connect-pin lcd FR -> display FR


Component Reference:

Component: hw-lcd-char-display

pins
namedirectionlegalvaluesbehaviors
FRinbinarydisplay
row-colin2 shorts as a 32-bit valuedisplay

attributes
namecategorylegal valuesdefault valuebehaviors
widthconfigurationany positive value80configuration
heightconfigurationany positive value24configuration