Defines | |
#define | GDM_DISPLAY_ON 0x01 |
#define | GDM_DISPLAY_OFF 0x00 |
#define | GDM_BACKLIGHT_ON 0x02 |
#define | GDM_BACKLIGHT_OFF 0x00 |
Functions | |
void | gdm_initialize (gdm_display *dp) |
void | gdm_set_mode (gdm_display *dp, int mode) |
void | gdm_set_gc (gdm_display *dp, enum gdm_gc_mode mode) |
int | gdm_refresh (gdm_display *dp) |
void | gdm_touch (gdm_display *dp, short x, short y, unsigned short width, unsigned short height) |
The gdm_initialize is used to initialize the display manager data structure. It must be called first to setup correctly the gdm_display data structure and initialize the hardware.
The gdm_set_gc is used to control the graphical context used when drawing on the bitmap.
The gdm_refresh and gdm_touch are used to synchronize the display manager bitmap with the LCD screen.
|
Turn off the backlight LED. |
|
Turn on the backlight LED. |
|
Turn off the display. |
|
Turn on the display. Definition at line 256 of file display.h. Referenced by _gdm_hw_set_mode(). |
|
Initialize the graphic display manager. The graphic display manager must be initialized to setup the initial image and internal data structures used to represent the display. The graphical context is set to the GDM_PLOT_OR mode. The LCD hardware is turned on.
|
|
Refresh the graphic display. Update the graphic display by synchronizing the data image that we keep track in dp and sending the appropriate commands to the LCD controller. The data image is scanned row by row and only the row parts that have changed are synchronized. This ensures a minimal interaction to the LCD controller and thus speed up the drawing and refresh process.
|
|
Set the mode of graphic operations. The mode controls the logical operation used to perform the drawing operations.
|
|
Control various modes of graphic display manager and LCD hardware. This operation allows to control the operating mode of the manager and of the hardware. The mode is composed of flags:
|
|
Touch the graphic display to force a synchronization of the region. The graphic region specified by x, y, width, height is touched to force a synchronization refresh with the LCD display. The region is clipped to the size of the display. Touching a region has an effect on the behavior of gdm_refresh. When refreshing occurs, only the touched regions are really updated on the LCD display. The drawing operations take care of touching the minimal region that affect the drawing, hence optimizing any refresh.
|