LCD instance type.
More...
#include <nrf_lcd.h>
LCD instance type.
This structure provides generic API for LCDs.
void(* nrf_lcd_t::lcd_display)(void) |
Function for displaying data from an internal frame buffer.
This function may be used when functions for drawing do not write directly to LCD but to an internal frame buffer. It could be implemented to write data from this buffer to LCD.
void(* nrf_lcd_t::lcd_display_invert)(bool invert) |
Function for setting inversion of colors on the screen.
- Parameters
-
[in] | invert | If true, inversion will be set. |
void(* nrf_lcd_t::lcd_pixel_draw)(uint16_t x, uint16_t y, uint32_t color) |
Function for drawing a single pixel.
- Parameters
-
[in] | x | Horizontal coordinate of the pixel. |
[in] | y | Vertical coordinate of the pixel. |
[in] | color | Color of the pixel in LCD accepted format. |
void(* nrf_lcd_t::lcd_rect_draw)(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint32_t color) |
Function for drawing a filled rectangle.
- Parameters
-
[in] | x | Horizontal coordinate of the point where to start drawing the rectangle. |
[in] | y | Vertical coordinate of the point where to start drawing the rectangle. |
[in] | width | Width of the image. |
[in] | height | Height of the image. |
[in] | color | Color with which to fill the rectangle in LCD accepted format. |
Function for rotating the screen.
- Parameters
-
[in] | rotation | Rotation as enumerated value. |
The documentation for this struct was generated from the following file:
- components/libraries/gfx/nrf_lcd.h