Mikroelektronika MIKROE-442 Datenbogen
602
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
TFT_H_Line
TFT_V_Line
Prototype
sub procedure TFT_H_Line(dim x_start, x_end, y_pos as integer)
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
sub procedure TFT_V_Line(dim y_start, y_end, x_pos as integer)
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)
TFT_Rectangle
Prototype
sub procedure TFT_Rectangle(dim x_upper_left, y_upper_left, x_bottom_right,
y_bottom_right as integer)
Returns
Nothing.
Description Draws a rectangle on TFT.
Parameters:
-
x_upper_left:
x coordinate of the upper left rectangle corner.
-
y_upper_left:
y coordinate of the upper left rectangle corner.
-
x_bottom_right:
x coordinate of the lower right rectangle corner.
-
y_bottom_right:
y coordinate of the lower right rectangle corner.
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
TFT_Rectangle(20, 20, 219, 107)