77#define DISPLAY_HEIGHT 240
78#define DISPLAY_WIDTH 240
156 uint16_t x2, uint16_t y2, uint16_t color);
176 uint16_t y2, uint16_t color);
188 uint16_t y2, uint16_t color);
203 uint16_t w, uint16_t h, uint16_t angle,
217 uint16_t w, uint16_t h, uint16_t angle,
229 uint16_t r, uint16_t color);
240 uint16_t y_center, uint16_t r, uint16_t color);
253 uint16_t x2, uint16_t y2, uint16_t r, uint16_t color);
261uint16_t
rgb_conv(uint16_t r, uint16_t g, uint16_t b);
274 uint8_t ascii, uint16_t color);
288 uint8_t *ascii, uint16_t color);
382 uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3,
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 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 display_destroy(display_t *display)
Stop using the display.
void displaySetFontDirection(display_t *display, uint16_t dir)
Changes the direction the characters will be printed.
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 displaySetFontFill(display_t *display, uint16_t color)
Enables the _font_fill and sets the _font_fill_color in the display handle.
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 displayUnsetFontFill(display_t *display)
Sets the _font_fill parameter to false in the display handle, turns off the font fill.
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 displayDisplayOff(display_t *display)
Turn off the display.
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 displayInversionOff(display_t *display)
Turn off inversion of the colors.
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 displayInversionOn(display_t *display)
Turn on inversion of the colors.
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.
directions
Enum of directions the text can be printed on on the display.
void displayBacklightOn(display_t *display)
Turn on the display backlight.
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 displayBacklightOff(display_t *display)
Turn off the display backlight.
void displayDisplayOn(display_t *display)
Initialize DISPLAY screen.
void displayUnsetFontUnderLine(display_t *display)
Turns off _font_underline in the display handle.
void displayDrawPixel(display_t *display, uint16_t x, uint16_t y, uint16_t color)
Draw a single pixel to the display.
colors
Colors that can be used with the display.
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 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.
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.
Struct representing a font file.
Internal type, do not use. Type of display that stores parameters for usage in different functions.
uint16_t _font_fill_color
uint16_t _font_underline_color