Refactored Project Structure for use with emulator
This commit is contained in:
17
emulator/qt/ll_tft.cpp
Normal file
17
emulator/qt/ll_tft.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "mainwindow.h"
|
||||
#include <QDebug>
|
||||
#include "ll_tft.h"
|
||||
|
||||
MainWindow* mainwindow;
|
||||
|
||||
bool ll_tft_init() {
|
||||
qDebug() << "tft init done";
|
||||
mainwindow = new MainWindow();
|
||||
mainwindow->show();
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
void ll_tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) {
|
||||
mainwindow->draw_line(x1,y1,x2,y2,color);
|
||||
}
|
||||
Reference in New Issue
Block a user