libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
Go to the documentation of this file.
83 #define DISPLAY_HEIGHT 240
84 #define DISPLAY_WIDTH 240
162 uint16_t x2, uint16_t y2, uint16_t color);
182 uint16_t x2, uint16_t y2, uint16_t color);
194 uint16_t x2, uint16_t y2, uint16_t color);
209 uint16_t w, uint16_t h, uint16_t angle,
223 uint16_t yc, uint16_t w, uint16_t h,
224 uint16_t angle, uint16_t color);
235 uint16_t y_center, uint16_t r, uint16_t color);
246 uint16_t y_center, uint16_t r,
260 uint16_t x2, uint16_t y2, uint16_t r,
269 extern uint16_t
rgb_conv(uint16_t r, uint16_t g, uint16_t b);
286 uint16_t y, uint8_t ascii, uint16_t color);
304 uint16_t y, uint8_t *ascii, uint16_t color);
398 uint16_t x2, uint16_t y2, uint16_t x3,
399 uint16_t y3, uint16_t color);
Internal type, do not use. Type of display that stores parameters for usage in different functions.
void displayDisplayOn(display_t *display)
Initialize DISPLAY screen.
void displayBacklightOff(display_t *display)
Turn off the display backlight.
void displayInversionOn(display_t *display)
Turn on inversion of the colors.
void displaySetFontFill(display_t *display, uint16_t color)
Enables the _font_fill and sets the _font_fill_color in the display handle.
void display_destroy(display_t *display)
Stop using the display.
void displayDrawCircle(display_t *display, uint16_t x_center, uint16_t y_center, uint16_t r, uint16_t color)
Draw a circle without infill on the display.
void displaySetFontDirection(display_t *display, uint16_t dir)
Changes the direction the characters will be printed.
void displayDrawRectAngle(display_t *display, uint16_t xc, uint16_t yc, uint16_t w, uint16_t h, uint16_t angle, uint16_t color)
Draws a rectangle with rounded corners at a specified angle on the display.
void displayUnsetFontFill(display_t *display)
Sets the _font_fill parameter to false in the display handle, turns off the font fill.
void displayUnsetFontUnderLine(display_t *display)
Turns off _font_underline in the display handle.
directions
Enum of directions the text can be printed on on the display.
void display_init(display_t *display)
Initialize the display display.
uint16_t _font_underline_color
uint16_t rgb_conv(uint16_t r, uint16_t g, uint16_t b)
RGB conversion for generating a color.
void displayInversionOff(display_t *display)
Turn off inversion of the colors.
void displayBacklightOn(display_t *display)
Turn on the display backlight.
void displayDrawRect(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
Draw a filled rectangle.
void displayDrawTriangleCenter(display_t *display, uint16_t xc, uint16_t yc, uint16_t w, uint16_t h, uint16_t angle, uint16_t color)
Draws a triangle at a specified angle on the display.
uint16_t _font_fill_color
void display_set_flip(display_t *display, bool xflip, bool yflip)
Flip the drawing off the screen.
Struct representing a font file.
void displayDrawLine(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
Draw a line from two coordinates.
colors
Colors that can be used with the display.
void displayDisplayOff(display_t *display)
Turn off the display.
void displayFillScreen(display_t *display, uint16_t color)
Fill entire display with a single color using the ldcDrawFillRect function.
void displaySetFontUnderLine(display_t *display, uint16_t color)
Turns on _font_underline in the display handle and sets the _font_underline_color to the specified co...
void displayDrawTriangle(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3, uint16_t color)
Draw a triangle without infill between the three given points in the given color.
void displayDrawRoundRect(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t r, uint16_t color)
Draw a rectangle with rounded angles.
void displayDrawFillRect(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
Draw a filled rectangle to the display.
void displayDrawPixel(display_t *display, uint16_t x, uint16_t y, uint16_t color)
Draw a single pixel to the display.
void displayDrawFillCircle(display_t *display, uint16_t x_center, uint16_t y_center, uint16_t r, uint16_t color)
Draw a circle with infill on the display.
int displayDrawChar(display_t *display, FontxFile *fx, uint16_t x, uint16_t y, uint8_t ascii, uint16_t color)
Draws a character on the given coordinates of the display.
int displayDrawString(display_t *display, FontxFile *fx, uint16_t x, uint16_t y, uint8_t *ascii, uint16_t color)
Function to draw a string on the display.