Define the generic API of a display device.
More...
Define the generic API of a display device.
- Warning
- This feature is experimental!
This API is experimental and in an early state - expect changes!
- Author
- Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
◆ disp_dev_color_depth()
uint8_t disp_dev_color_depth |
( |
const disp_dev_t * |
dev | ) |
|
Get the color depth of the display device.
- Returns
- The color depth
◆ disp_dev_height()
uint16_t disp_dev_height |
( |
const disp_dev_t * |
dev | ) |
|
Get the height of the display device.
- Parameters
-
[in] | dev | Pointer to the display device |
- Returns
- Height in pixels
◆ disp_dev_map()
void disp_dev_map |
( |
const disp_dev_t * |
dev, |
|
|
uint16_t |
x1, |
|
|
uint16_t |
x2, |
|
|
uint16_t |
y1, |
|
|
uint16_t |
y2, |
|
|
const uint16_t * |
color |
|
) |
| |
Map an area to display on the device.
- Parameters
-
[in] | dev | Pointer to the display device |
[in] | x1 | Left coordinate |
[in] | x2 | Right coordinate |
[in] | y1 | Top coordinate |
[in] | y2 | Bottom coordinate |
[in] | color | Array of color to map to the display |
◆ disp_dev_set_invert()
void disp_dev_set_invert |
( |
const disp_dev_t * |
dev, |
|
|
bool |
invert |
|
) |
| |
Invert the display device colors.
- Parameters
-
[in] | dev | Pointer to the display device |
[in] | invert | Invert mode (true if invert, false otherwise) |
◆ disp_dev_width()
Get the width of the display device.
- Parameters
-
[in] | dev | Pointer to the display device |
- Returns
- Width in pixels