30
CY8CKIT-029 PSoC® LCD Segment Drive Expansion Board Kit Guide, Doc. # 001-55415 Rev. *K
Code Examples
See
Hardware Connections for PSoC 3/PSoC 5LP Development Kit on page 19
for details on hard-
ware connections on CY8CKIT-030/CY8CKIT-050LP.
5.1.4
Verifying Output
Vary the VR (potentiometer) and note the status changes displayed on the LCD.
Figure 5-2. Verification of Battery Meter Project
5.1.5
PSoC Creator Project Details
PSoC Creator offers a flexible software tool to create and configure the programmable peripherals.
Figure 5-3. PSoC Creator Top Level Design For Battery Meter Project
5.1.5.1
LCD_Seg
The LCD_Seg is the core component in this code example. A single segment LCD component is
selected to handle all displays on the LCD glass panel. This component defines all segment assign-
ments for the glass. The component presents a grid containing an entry for each addressable ele-
ment in the glass. An element can be a pixel in the matrix characters, a segment of one of the
segment displays, or a specific icon (symbol) built into the display. Each element is considered a
pixel and is individually addressed at its mapped location and turned on or off using the component
pixel handling API calls.
Helper functions are also available; each helper is specifically designed to allow handling of the dif-
ferent types of characters in the display. Thus, segments of a segment character are grouped and
addressed collectively by a single helper. Each helper has a set of component API calls that are
placed in the code to write digits or characters to the target display areas.
Each icon is turned on or off using a write pixel API call. The matrix display characters are set using
a write string API call. The segment displays are written one character at a time using a write charac-
ter or write digit API call.
In the basic configuration, the bias voltage is selected to set the contrast level. The contrast level can
also be adjusted dynamically, by using the API call provided by the segment LCD component. The
higher the bias level set in the call to the API, the higher the contrast. The API allows a selection
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from