Renesas H8SX LCDSetRasterOffset, Format, Parameters, Return Values, Properties, Description

Models: H8S H8SX

1 26
Download 26 pages 51.3 Kb
Page 23
Image 23
4.1.9LCDSetRasterOffset

Direct Drive LCD Design Guide

4.1.9LCDSetRasterOffset

Request display location within larger raster image

Format

sI16 LCDSetRasterOffset(sI16 x, sI16 y);

Parameters

x

X offset in pixels within the raster.

y

Y offset in pixels within the raster.

Return Values

0 on success, non-0 on failure

Properties

Prototyped in file ”DirectLCD.h”

Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family.

Description

LCDSetRasterOffset changes the display position within the raster. The offset is limited to be within area allocated by the FRAME_HEIGHT x FRAME_WIDTH space. If raster is the same size as the panel, the offset cannot be changed (fixed to 0,0).

Note that LCDSetActiveRaster, LCDSetRasterOffset and LCDSetLineSource are similar in function and interact.

Example

sI16 x = 40, y=20;

 

……

//set raster offset

If (LCDSetRasterOffset (x, y) != 0)

// handle error;

 

22

Page 23
Image 23
Renesas H8SX user manual LCDSetRasterOffset, Format, Parameters, Return Values, Properties, Description, Example