User manual

628
mikoC PRO for dsPIC
MikroElektronika
TFT_H_Line
TFT_V_Line
Prototype
void TFT_H_Line(int x_start, int x_end, int y_pos);
Returns Nothing.
Description Draws a horizontal line on TFT.
Parameters :
- x_start: x coordinate of the line start.
- x_end: x coordinate of the line end.
- y_pos: y coordinate of horizontal line.
Requires TFT module needs to be initialized. See the TFT_Init routine.
Example
// Draw a horizontal line between dots (10,20) and (50,20)
TFT_H_Line(10, 50, 20);
Prototype
void TFT_V_Line(int y_start, int y_end, int x_pos);
Returns Nothing.
Description Draws a vertical line on TFT.
Parameters :
- y_start: y coordinate of the line start.
- y_end: y coordinate of the line end.
- x_pos: x coordinate of vertical line.
Requires TFT module needs to be initialized. See the TFT_Init routine.
Example
// Draw a vertical line between dots (10,5) and (10,25)
TFT_V_Line(5, 25, 10);