OMOTE/Platformio/include/OmoteUI/HardwareAbstractionInterface.h
Matthew Colvin 8af4b276cf code format
update visual studio solution to build all versions properly

Pull pin defs into config file
use config file to allow USE_SIMULATOR checks in OmoteUI
this will allow the sim to compile in specific code within the UI
2023-07-28 11:38:25 -05:00

25 lines
783 B
C++

#pragma once
#include <lvgl.h>
#include <string>
class HardwareAbstractionInterface {
public:
typedef void (*display_flush_cb)(struct _lv_disp_drv_t *disp_drv,
const lv_area_t *area, lv_color_t *color_p);
typedef void (*touch_pad_read)(struct _lv_indev_drv_t *indev_drv,
lv_indev_data_t *data);
HardwareAbstractionInterface() = default;
virtual void debugPrint(std::string message) = 0;
virtual void sendIR() = 0;
virtual void MQTTPublish(const char *topic, const char *payload) = 0;
virtual void initLVGL(display_flush_cb aDisplayFlushCb,
touch_pad_read aTouchPadReadCb) = 0;
virtual lv_coord_t getScreenWidth() = 0;
virtual lv_coord_t getScreenHeight() = 0;
};