basic of display management. Backend to register and give image for the device. front end to manage displays etc.
This commit is contained in:
17
Provider/main/device.hpp
Normal file
17
Provider/main/device.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "types.hpp"
|
||||
|
||||
constexpr int MAX_DEVICES = 8;
|
||||
constexpr int DEVICE_XML_MAX = 2048;
|
||||
|
||||
struct device_t
|
||||
{
|
||||
char mac[18]; // "AA:BB:CC:DD:EE:FF\0"
|
||||
bool active; // Slot in use
|
||||
char xml_layout[DEVICE_XML_MAX]; // LVGL XML string for the current screen
|
||||
};
|
||||
|
||||
internal device_t g_Devices[MAX_DEVICES] = {};
|
||||
Reference in New Issue
Block a user