![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | init (LcdColorDepth depth=LcdColorDepth::L12BIT) |
| Initialize the LCD device. | |
| int8_t | dispose () |
| Release resources and deinitialize the LCD device. | |
| bool | isActive () |
| Check whether the LCD subsystem is active (initialized). | |
| void | LcdColorFill (LcdSide side, uint8_t R, uint8_t G, uint8_t B) |
| Fill a panel with a solid RGB color. | |
| int8_t | writeLcd (LcdData *frame_data) |
| Write a buffer to the LCD. | |
| int | getBufferSize () |
| Get required buffer size in bytes for one full frame. | |
| LcdColorDepth | getColorDepth () |
| Get the currently configured LCD color depth. | |
| int8_t | setBrightness (uint8_t value) |
| Set LCD backlight brightness. | |
| void | toLcdBuffer (uint8_t *output, uint8_t *input, bool input_RGBA=false) |
| Convert 24-bit (RGB) or 32-bit (RGBA) image data to the LCD buffer format. | |
| float | getVersion () |
| Get current library version. | |
| int8_t LcdControl::dispose | ( | ) |
Release resources and deinitialize the LCD device.
| int LcdControl::getBufferSize | ( | ) |
Get required buffer size in bytes for one full frame.
Size depends on panel resolution and configured color depth. Example: 240*240*3 for 18-bit depth represented as 3 bytes/pixel.
| LcdColorDepth LcdControl::getColorDepth | ( | ) |
Get the currently configured LCD color depth.
| float LcdControl::getVersion | ( | ) |
Get current library version.
Original note: format 0.XYZ (3 digits after major).
| int8_t LcdControl::init | ( | LcdColorDepth | depth = LcdColorDepth::L12BIT | ) |
Initialize the LCD device.
| depth | LCD color depth to configure. |
| bool LcdControl::isActive | ( | ) |
Check whether the LCD subsystem is active (initialized).
| void LcdControl::LcdColorFill | ( | LcdSide | side, |
| uint8_t | R, | ||
| uint8_t | G, | ||
| uint8_t | B ) |
Fill a panel with a solid RGB color.
| side | LCD side to fill. |
| R | Red component (0..255). |
| G | Green component (0..255). |
| B | Blue component (0..255). |
| int8_t LcdControl::setBrightness | ( | uint8_t | value | ) |
Set LCD backlight brightness.
| value | Brightness value (min = 0, max = 10). |
| void LcdControl::toLcdBuffer | ( | uint8_t * | output, |
| uint8_t * | input, | ||
| bool | input_RGBA = false ) |
Convert 24-bit (RGB) or 32-bit (RGBA) image data to the LCD buffer format.
| output | Output buffer pointer (must have at least getBufferSize() bytes). |
| input | Input image data pointer (RGB or RGBA). |
| input_RGBA | Set true if input contains RGBA data (alpha is discarded). |
output and input must be valid (non-null). | int8_t LcdControl::writeLcd | ( | LcdData * | frame_data | ) |
Write a buffer to the LCD.
| frame_data | Frame descriptor containing target side and buffer pointer. |
frame_data and frame_data->buffer must be valid (non-null).