GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Controllers

Controller specific functions. More...

Functions

void glcd_command (uint8_t c)
 Send command byte to LCD. More...
 
void glcd_data (uint8_t c)
 Send data byte to LCD. More...
 
void glcd_power_down (void)
 Power down the device. More...
 
void glcd_power_up (void)
 Power up the device. More...
 
void glcd_set_contrast (uint8_t val)
 Set contrast. More...
 
void glcd_set_x_address (uint8_t x)
 Set X address of RAM (column). More...
 
void glcd_set_y_address (uint8_t y)
 Set Y address of RAM (select bank). More...
 
void glcd_write (void)
 Update the display within the specified bounding box. More...
 

Detailed Description

Controller specific functions.

Currently only the following controllers are supported:

The C and header files defining these functions are stored in the subdirectory:

devices/

Function Documentation

void glcd_command ( uint8_t  c)

Send command byte to LCD.

Parameters
cCommand byte to be written to LCD
void glcd_data ( uint8_t  c)

Send data byte to LCD.

Parameters
cData byte to be written to LCD
void glcd_power_down ( void  )

Power down the device.

void glcd_power_up ( void  )

Power up the device.

void glcd_set_contrast ( uint8_t  val)

Set contrast.

Parameters
valValue from 0 to 127. This should be experimentally determined. Supported by PCD8544 only.
void glcd_set_x_address ( uint8_t  x)

Set X address of RAM (column).

Device must be under basic instruction set mode before using this.

Parameters
xX address of RAM (0 <= X <= GLCD_LCD_WIDTH-1)
See Also
GLCD_LCD_WIDTH
void glcd_set_y_address ( uint8_t  y)

Set Y address of RAM (select bank).

  • for PCD8544, device must be under basic instruction set mode before using this.
    Parameters
    ypage address of RAM (0 <= Y < GLCD_LCD_HEIGHT/8)
    See Also
    GLCD_LCD_HEIGHT
    GLCD_NUMBER_OF_BANKS
    Note
    Update: y is actually bank number, not pixel number!