back to FEHLCD
Description
This function is used to write one data type to the screen. Please note that this function can only accept one argument to print at a time; however, it also takes the x and y position in pixels at which to update the screen (max x pixels = 320, max y pixels = 240). The x and y pixel identifiers are zero-indexed, and are referenced from the upper left-hand corner.
Syntax
.WriteAt( to_print, int x, int y )
Parameters
to_print
: a variable that could be a string, character, integer, or float that you wish to print to the screen.
x
: integer number of pixels in x direction (min 0, max 319)
y
: integer number of pixels in y direction (min 0, max 239)
Returns
None.
Examples
#include <FEHLCD.h> int main(void) { //Write "Hello World" to the middle of the screen LCD.WriteAt("Hello World",94,111); }