Page 58
Epson Research and Development
Vancouver Design Center
S1D13704
Programming Notes and Examples
X26A-G-002-03
Issue Date: 01/02/12
9.2.5 Power Save
This section covers the HAL functions dealing with the Power Save features of the
S1D13704.
int seSetPowerSaveMode(int DevID, int PwrSaveMode)
Description:
This function sets on the S1D13704’s software selectable power save modes.
Parameters:
DevID
- a registered device ID
PwrSaveMode - integer value specifying the desired power save mode.
Acceptable values for PwrSaveMode are:
0 - (software power save mode) in this mode registers and memory are
read/writable. LCD output is forced low.
3 - (normal operation) all outputs function normally.
Return Value: ERR_OK
- operation completed with no problems
9.2.6 Drawing
The Drawing routines cover HAL functions that deal with displaying pixels, lines and
shapes.
int seDrawLine(int DevID, int x1, int y1, int x2, int y2, DWORD Color)
Description: This routine draws a line on the display from the endpoints defined by x1,y1 to the
endpoint x2,y2 in the requested 'Color'.
Currently seDrawLine() only draws horizontal and vertical lines.
Parameters: Device
-
registered
device
ID.
(x1, y1)
- first endpoint of the line in pixels
(x2, y2)
- second endpoint of the line in pixels (see note below)
Color
- color to draw with. 'Color' is an index into the LUT.
Return Value: ERR_OK - operation completed with no problems
*