libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
Go to the documentation of this file.
7 printf(
"dp %d %d %d\n",x,y,color);
11 uint16_t x2, uint16_t y2, uint16_t color){
13 printf(
"dfr %d %d %d %d %d\n",x1,y1,x2,y2,color);
19 uint16_t y2, uint16_t color){
21 printf(
"dl %d %d %d %d %d\n",x1,y1,x2,y2,color);
25 uint16_t y2, uint16_t color){
27 printf(
"dr %d %d %d %d %d\n",x1,y1,x2,y2,color);
31 uint16_t w, uint16_t h, uint16_t angle,
34 uint16_t w, uint16_t h, uint16_t angle,
37 uint16_t r, uint16_t color){};
39 uint16_t y_center, uint16_t r, uint16_t color){};
41 uint16_t x2, uint16_t y2, uint16_t r, uint16_t color){};
42 uint16_t
rgb_conv(uint16_t r, uint16_t g, uint16_t b){};
44 uint8_t ascii, uint16_t color){};
46 uint8_t *ascii, uint16_t color){};
59 uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3,
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 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 display_destroy(display_t *display __attribute__((unused)))
void displayUnsetFontUnderLine(display_t *display)
Turns off _font_underline in the display handle.
void display_init(display_t *display)
Initialize the display display.
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.
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.
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 *fxs, 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.