The Set cursor at ()() block is found under the Robotics palette in the extension evive TFT display. It sets the cursor at the specified coordinate. Origin (0,0) is at the top left corner of the screen. Positive X-direction is to right while positive Y-direction is downward. Once the cursor has moved to the specified coordinate, you can write text using that point as reference.
- In this script, we have changed the text colour (default is white) and set the background to black using the Set text colour () with background () block respectively. The cursor is at (50, 50) and we write “Hello World!” using the Write () block.
- Adjust where you want to display the text by varying the coordinates input to the Set cursor at () () block. Here we display “Hello World!” at 3 different locations on the screen.