Renesas H8S Manuale Utente Pagina 23

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 26
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26

Commenti su questo manuale

Nessun commento