OMOTE/LVGL Simulator/LVGL.Simulator/HardwareSimulator.hpp
Matthew Colvin e7da8f63fb Pull out OmoteUI into its own hpp/cpp that
only controls UI/UX
Added HardwareAbstractionInterface to allow UI to be decoupled

Add OmoteUI class/Header to visual studio solution
Bump the compiler to c++17 for std::clamp
2023-07-28 11:34:28 -05:00

38 lines
807 B
C++

#pragma once
#include "HardwareAbstractionInterface.h"
#include <string>
#include <iostream>
#define screenWidth 240
#define screenHeight 320
class HardwareSimulator :
public HardwareAbstractionInterface
{
public:
HardwareSimulator() = default;
virtual void debugPrint(std::string message) override {
std::cout << message;
}
virtual void sendIR() override {
}
virtual void MQTTPublish(const char* topic, const char* payload) override {
};
virtual void initLVGL(
display_flush_cb aDisplayFlushCb = nullptr,
touch_pad_read aTouchPadReadCb = nullptr) override {
lv_init();
};
virtual lv_coord_t getScreenWidth() { return screenWidth; };
virtual lv_coord_t getScreenHeight() { return screenHeight; };
};