Set line pattern

Description

  Set a byte of bitimage data for line drawing, refer to bit image.
  When the diplay drawing line, it scan the line pattern, if the current bit is 1, then draw a dot, otherwise do nothing, then move to next bit for next dot of line.

  This command affect all following outputs to screen, until set to a different pattern.

Usage:

Direct:

"SLPd"

Arduino:

void setLinePattern(uint8_t d)

C:

void Digole_setLinePattern(uint8_t d)

Parameters:

d

A byte of line pattern.

Return:

none

Example (Arduino):

mydisp.setLinePattern(0B11001100); //set the line patter of dash
mydisp.drawHLine
(30,40,50); //draw a line like: - - - - - 

Example(direct)

serial.writeString("SLP\xCC"); //set the line patter of dash

serial.writeString("LN\x1E\x28\x50\x28");//draw a line like: - - - - - 

Changelog

Version Description
   

See Also

Draw line

Draw rectangle