#include <string.h>
#include <stdio.h>
#include <thread>
#include <spdlog/spdlog.h>
int fillBufferExample();
int fillColorExample();
int main()
{
spdlog::set_level(spdlog::level::info);
spdlog::flush_on(spdlog::level::trace);
spdlog::error("Doly service stop failed");
return -1;
}
spdlog::error("LcdControl init failed");
return -2;
}
fillBufferExample();
std::this_thread::sleep_for(std::chrono::seconds(3));
fillColorExample();
return 0;
}
int fillBufferExample()
{
uint8_t buf[buffer_size];
memset(&buf, 0xFF, buffer_size);
int retval = 0;
{
spdlog::error("Left Lcd write failed! \n");
retval = -1;
}
{
spdlog::error("Right Lcd write failed! \n");
retval = -1;
}
return retval;
}
int fillColorExample()
{
return 0;
}
Shared helper utilities and common types used across the Doly SDK.
Low-level LCD control API for Doly displays.
LcdColorDepth
LCD pixel color depth / bus format selection.
Definition LcdControl.h:26
@ L12BIT
Definition LcdControl.h:28
@ LEFT
Definition LcdControl.h:38
@ RIGHT
Definition LcdControl.h:39
int8_t stopDolyService()
Stop the background Doly service (if running).
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.
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