back to FEHLCD
Description
This function is used to draw a single pixel at a specified (x, y) pixel coordinate on the screen. The pixel will be the color set by the most recent use of LCD.SetFontColor().
Syntax
.DrawPixel( int x, int y )
Parameters
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) { //Draw a colored pixel at the center of the screen LCD.SetFontColor(LIGHTGOLDENRODYELLOW); LCD.DrawPixel(160,120); }