Loading files
7976a3dfdThis file is pinned to the selected release. Download the original to open it in your design tool.
#include "LibWrapper.hpp"
#include <stdint.h>
#include "PlatformFactoryStm32.hpp"
#include "MyApplication.hpp"
#include "St7735DisplayDriverStub.hpp"
#include "DisplayPixelColor.hpp"
extern Driver::St7735DisplayDriverStub st7735DisplayDriverStub;
void LibWrapper_Init()
{
app_init();
}
void LibWrapper_Tick()
{
app_tick();
}
// I need display, key presses, BNC pulses and output from uart, wifi and sd card
bool LibWrapper_PressKey()
{
// return displayDriver.getDisplayWidth();
return true;
}
uint8_t LibWrapper_GetDisplayWidth()
{
uint8_t width = 0u;
st7735DisplayDriverStub.getXSize(width);
return width;
}
uint8_t LibWrapper_GetDisplayHeight()
{
uint8_t height = 0u;
st7735DisplayDriverStub.getYSize(height);
return height;
}
uint16_t LibWrapper_GetPixelValue(uint8_t x, uint8_t y)
{
return st7735DisplayDriverStub.getPixelValue(x, y);
}