Renesas H8S User Manual Page 23

  • Download
  • Add to my manuals
  • Print
  • Page
    / 26
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 22
Direct Drive LCD Design Guide
4.1.9 LCDSetRasterOffset
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;
……
If (LCDSetRasterOffset (x, y) != 0) //set raster offset
// handle error;
22
Page view 22
1 2 ... 18 19 20 21 22 23 24 25 26

Comments to this Manuals

No comments