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 TFT Display Text Hello WorldCursor at 10, 10 position.

evive TFT Display Text CursorCursor at 50, 60 position.

Input Parameters

  1. X position of the text cursor.
  2. Y position of the text cursor.
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

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

Related Tutorials, Projects & Documentation
Dabble Home Connected

Getting Started with Dabble

Getting Started with Dabble Introduction Dabble App transforms your Smartphone into a virtual I/O device and lets you control hardware using Bluetooth, communicate with it,…
PictoBlox blocks Scratch how to

Getting Started with PictoBlox

PictoBlox is a programming software based on Scratch, where you can make interactive games, animations or program robots and projects with evive, Arduino, etc..
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart