Doly C++ SDK v1.00
Loading...
Searching...
No Matches
LcdControl.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include <vector>
4
21
25enum class LcdColorDepth :uint32_t
26{
28 L12BIT = 0x03,
30 L18BIT = 0x06,
31};
32
36enum LcdSide :uint8_t
37{
40};
41
45struct LcdData
46{
50 uint8_t* buffer;
51};
52
53namespace LcdControl
54{
67
75 int8_t dispose();
76
81 bool isActive();
82
91 void LcdColorFill(LcdSide side, uint8_t R, uint8_t G, uint8_t B);
92
105 int8_t writeLcd(LcdData* frame_data);
106
116
122
129 int8_t setBrightness(uint8_t value);
130
140 void toLcdBuffer(uint8_t* output, uint8_t* input, bool input_RGBA = false);
141
149 float getVersion();
150
151};
152 // end of group doly_lcdcontrol
LcdColorDepth
LCD pixel color depth / bus format selection.
Definition LcdControl.h:26
LcdSide
Which LCD panel to address.
Definition LcdControl.h:37
@ L18BIT
Definition LcdControl.h:30
@ L12BIT
Definition LcdControl.h:28
@ LEFT
Definition LcdControl.h:38
@ RIGHT
Definition LcdControl.h:39
Definition LcdControl.h:54
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.
int getBufferSize()
Get required buffer size in bytes for one full frame.
int8_t dispose()
Release resources and deinitialize the LCD device.
LcdColorDepth getColorDepth()
Get the currently configured LCD color depth.
bool isActive()
Check whether the LCD subsystem is active (initialized).
int8_t init(LcdColorDepth depth=LcdColorDepth::L12BIT)
Initialize the LCD device.
void LcdColorFill(LcdSide side, uint8_t R, uint8_t G, uint8_t B)
Fill a panel with a solid RGB color.
int8_t setBrightness(uint8_t value)
Set LCD backlight brightness.
int8_t writeLcd(LcdData *frame_data)
Write a buffer to the LCD.
float getVersion()
Get current library version.
Frame descriptor used by writeLcd().
Definition LcdControl.h:46
LcdSide side
Definition LcdControl.h:48
uint8_t * buffer
Definition LcdControl.h:50