|
void | display_init (display_t *display) |
|
void | display_destroy (display_t *display) |
|
void | displayDrawPixel (display_t *display, uint16_t x, uint16_t y, uint16_t color) |
|
void | displayDrawFillRect (display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) |
|
void | displayFillScreen (display_t *display, uint16_t color) |
|
void | displayDrawLine (display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) |
|
void | displayDrawRect (display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) |
|
void | displayDrawRectAngle (display_t *display, uint16_t xc, uint16_t yc, uint16_t w, uint16_t h, uint16_t angle, uint16_t color) |
|
void | displayDrawTriangleCenter (display_t *display, uint16_t xc, uint16_t yc, uint16_t w, uint16_t h, uint16_t angle, uint16_t color) |
|
void | displayDrawCircle (display_t *display, uint16_t x_center, uint16_t y_center, uint16_t r, uint16_t color) |
|
void | displayDrawFillCircle (display_t *display, uint16_t x_center, uint16_t y_center, uint16_t r, uint16_t color) |
|
void | displayDrawRoundRect (display_t *display, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t r, uint16_t color) |
|
uint16_t | rgb_conv (uint16_t r, uint16_t g, uint16_t b) |
|
int | displayDrawChar (display_t *display, FontxFile *fx, uint16_t x, uint16_t y, uint8_t ascii, uint16_t color) |
|
int | displayDrawString (display_t *display, FontxFile *fx, uint16_t x, uint16_t y, uint8_t *ascii, uint16_t color) |
|
void | displaySetFontDirection (display_t *display, uint16_t dir) |
|
void | displaySetFontFill (display_t *display, uint16_t color) |
|
void | displayUnsetFontFill (display_t *display) |
|
void | displaySetFontUnderLine (display_t *display, uint16_t color) |
|
void | displayUnsetFontUnderLine (display_t *display) |
|
void | displayDisplayOff (display_t *display) |
|
void | displayDisplayOn (display_t *display) |
|
void | displayBacklightOff (display_t *display) |
|
void | displayBacklightOn (display_t *display) |
|
void | displayInversionOff (display_t *display) |
|
void | displayInversionOn (display_t *display) |
|
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) |
|
void | display_set_flip (display_t *display, bool xflip, bool yflip) |
|
Wrappers to simplify the use of the TFT LCD display.
An example of how to use this library.
int main (void)
{
InitFontx(fx16G,
"../../fonts/ILGH16XB.FNT",
"");
GetFontx(fx16G, 0, buffer_fx16G, &fontWidth_fx16G, &fontHeight_fx16G);
uint8_t text[] = "hello";
return EXIT_SUCCESS;
}
void display_destroy(display_t *display __attribute__((unused)))
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.
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 displaySetFontDirection(display_t *display, uint16_t dir)
Changes the direction the characters will be printed.
void display_init(display_t *display)
Initialize the display 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 displayFillScreen(display_t *display, uint16_t color)
Fill entire display with a single color using the ldcDrawFillRect function.
void displayDrawPixel(display_t *display, uint16_t x, uint16_t y, uint16_t color)
Draw a single pixel to the display.
void InitFontx(FontxFile *fxs, const char *f0, const char *f1)
Initializes the given FontxFile structure with the specified font files.
bool GetFontx(FontxFile *fxs, uint8_t ascii, uint8_t *pGlyph, uint8_t *pw, uint8_t *ph)
Gets the glyph data for the specified ASCII character.
void pynq_init(void)
Initialise the switchbox and GPIO of the PYNQ.
void pynq_destroy(void)
Reset and destroy the switchbox and GPIO of the PYNQ.
Struct representing a font file.
Internal type, do not use. Type of display that stores parameters for usage in different functions.