libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
display.c
Go to the documentation of this file.
1#include <display.h>
2void display_init(display_t *display){};
3void display_destroy(display_t *display){};
4void displayDrawPixel(display_t *display, uint16_t x, uint16_t y,
5 uint16_t color){};
6void displayDrawFillRect(display_t *display, uint16_t x1, uint16_t y1,
7 uint16_t x2, uint16_t y2, uint16_t color){};
8void displayFillScreen(display_t *display, uint16_t color){};
9void displayDrawLine(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2,
10 uint16_t y2, uint16_t color){};
11void displayDrawRect(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2,
12 uint16_t y2, uint16_t color){};
13void displayDrawRectAngle(display_t *display, uint16_t xc, uint16_t yc,
14 uint16_t w, uint16_t h, uint16_t angle,
15 uint16_t color){};
16void displayDrawTriangleCenter(display_t *display, uint16_t xc, uint16_t yc,
17 uint16_t w, uint16_t h, uint16_t angle,
18 uint16_t color){};
19void displayDrawCircle(display_t *display, uint16_t x_center, uint16_t y_center,
20 uint16_t r, uint16_t color){};
21void displayDrawFillCircle(display_t *display, uint16_t x_center,
22 uint16_t y_center, uint16_t r, uint16_t color){};
23void displayDrawRoundRect(display_t *display, uint16_t x1, uint16_t y1,
24 uint16_t x2, uint16_t y2, uint16_t r, uint16_t color){};
25uint16_t rgb_conv(uint16_t r, uint16_t g, uint16_t b){};
26int displayDrawChar(display_t *display, FontxFile *fx, uint16_t x, uint16_t y,
27 uint8_t ascii, uint16_t color){};
28int displayDrawString(display_t *display, FontxFile *fx, uint16_t x, uint16_t y,
29 uint8_t *ascii, uint16_t color){};
30void displaySetFontDirection(display_t *display, uint16_t dir){};
31void displaySetFontFill(display_t *display, uint16_t color){};
33void displaySetFontUnderLine(display_t *display, uint16_t color){};
36void displayDisplayOn(display_t *display){};
41void displayDrawTriangle(display_t *display, uint16_t x1, uint16_t y1,
42 uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3,
43 uint16_t color){};
void display_destroy(display_t *display __attribute__((unused)))
Definition display.c:279
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.
Definition display.c:924
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.
Definition display.c:334
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...
Definition display.c:972
void displaySetFontDirection(display_t *display, uint16_t dir)
Changes the direction the characters will be printed.
Definition display.c:955
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.
Definition display.c:526
void displaySetFontFill(display_t *display, uint16_t color)
Enables the _font_fill and sets the _font_fill_color in the display handle.
Definition display.c:962
void displayDrawRect(display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
Draw a filled rectangle.
Definition display.c:451
void displayUnsetFontFill(display_t *display)
Sets the _font_fill parameter to false in the display handle, turns off the font fill.
Definition display.c:970
void display_init(display_t *display)
Initialize the display display.
Definition display.c:275
uint16_t rgb_conv(uint16_t r, uint16_t g, uint16_t b)
RGB conversion for generating a color.
Definition display.c:751
void displayDisplayOff(display_t *display)
Turn off the display.
Definition display.c:376
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.
Definition display.c:398
void displayInversionOff(display_t *display)
Turn off inversion of the colors.
Definition display.c:1005
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.
Definition display.c:681
void displayInversionOn(display_t *display)
Turn on inversion of the colors.
Definition display.c:1012
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.
Definition display.c:755
void displayBacklightOn(display_t *display)
Turn on the display backlight.
Definition display.c:996
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.
Definition display.c:594
void displayFillScreen(display_t *display, uint16_t color)
Fill entire display with a single color using the ldcDrawFillRect function.
Definition display.c:390
void displayBacklightOff(display_t *display)
Turn off the display backlight.
Definition display.c:987
void displayDisplayOn(display_t *display)
Initialize DISPLAY screen.
Definition display.c:383
void displayUnsetFontUnderLine(display_t *display)
Turns off _font_underline in the display handle.
Definition display.c:980
void displayDrawPixel(display_t *display, uint16_t x, uint16_t y, uint16_t color)
Draw a single pixel to the display.
Definition display.c:290
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.
Definition display.c:469
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.
Definition display.c:635
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.
Definition display.c:553
Struct representing a font file.
Definition fontx.h:28
Internal type, do not use. Type of display that stores parameters for usage in different functions.
Definition display.h:110