ezLCD+103 Driver
0.1
Driver code for the ezLCD+103
|
Functions | |
void | ezLCD_set_xy (int16_t x, int16_t y) |
void | ezLCD_set_x (int16_t x) |
void | ezLCD_set_y (int16_t y) |
void | ezLCD_save_position (uint8_t index) |
void | ezLCD_restore_position (uint8_t index) |
This header file is used to manage the coordinates of the current position.
A most drawing functions in this library utilize the current position . The current position can be thought of as a cursor; it indicates the point or starting point where some activity will occur. This value is stored internally on the ezLCD+103 and cannot be read back.
Even though the display is 320 pixels wide by 240 pixels tall, the current position may assume values off of the screen in both the negative and positive direction. This will result in objects being drawn partially or completely off screen.
The coordinate system is rather unconventional in comparison to the standard Cartesian coordinate system. In this coordinate system, Y values increase as one moves south while X values increase as one moves east as they do in the regular Cartesian system. Imagine that the screen takes up a portion of the fourth quadrant of the Cartesian plane; however, we take the absolute value of the Y-coordinate. This concept is illustrated in the image below.
void ezLCD_restore_position | ( | uint8_t | index | ) |
This function is used restore the current position from memory.
void ezLCD_save_position | ( | uint8_t | index | ) |
This function is used save the current position for later use.
void ezLCD_set_x | ( | int16_t | x | ) |
This function is used to set the X coordinate of the current position .
This function is used to set the XY coordinates of the current position.
void ezLCD_set_y | ( | int16_t | y | ) |
This function is used to set the Y coordinate of the current position .