Getting Started with PictoBlox
Important Terms
Courses

set cursor at () ()

set cursor block

Set cursor at ()() block is a stack block available in evive display extension. The block sets the cursor at the specified coordinate in the TFT Display of evive. 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 the reference.

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

The limits for the X and the Y coordinates are:

  1. X: 0 to 159
  2. Y: 0 to 127

Example

  1. In this script, we have changed the text color (default is white) and set the background to black using the set text color () with () background & size () block and fill screen with () color respectively. The cursor is at (50, 50) and we write “Hello World!” using the write () block.
    evive Display Blocks Example
  2. Adjust where you want to display the text by varying the coordinates input using set cursor at () () block. Here we display “Hello World!” at 3 different locations on the screen.
    set cursor example
This helped
This didn't help

Content is available under CC BY-SA 4.0 unless otherwise noted.

PictoBlox Supported Boards
Extensions
Close Menu
×
×

Cart

STEMpedia Starter Kit is now available on Indiegogo!
STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!
x