back to FEHLCD
Description
This function is used to draw a horizontal line at a specified y position with specified start and end x positions. The parameters x1 and x2 can be in either order of largest and smallest. The line will be the color set by the most recent use of LCD.SetFontColor().
Syntax
.DrawHorizontalLine( int y, int x1, int x2 )
Parameters
y: integer number of pixels in y direction to the horizontal line (min 0, max 239)
x1: integer pixel position in x direction for start of line (min 0, max 319)
x2: integer pixel position in x direction for end of line (min 0, max 319)
Returns
None.
Examples
#include <FEHLCD.h>
int main(void)
{
//Draw a horizontal line in the middle of the screen
LCD.SetFontColor(LIGHTGOLDENRODYELLOW);
LCD.DrawHorizontalLine(120,40,280);
}