libpynq (release 5EWC0-2023 version 0.2.6 of 2023-10-24 17:28)
|
Go to the source code of this file.
Data Structures | |
struct | display_t |
Macros | |
#define | DISPLAY_HEIGHT 240 |
#define | DISPLAY_WIDTH 240 |
Enumerations | |
enum | colors { RGB_RED = 0xf800 , RGB_GREEN = 0x07e0 , RGB_BLUE = 0x001f , RGB_BLACK = 0x0000 , RGB_WHITE = 0xffff , RGB_GRAY = 0x8c51 , RGB_YELLOW = 0xFFE0 , RGB_CYAN = 0x07FF , RGB_PURPLE = 0xF81F } |
enum | directions { TEXT_DIRECTION0 = 0 , TEXT_DIRECTION90 = 1 , TEXT_DIRECTION180 = 2 , TEXT_DIRECTION270 = 3 , NUM_TEXT_DIRECTIONS } |
Functions | |
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) |