Refactored Project Structure for use with emulator

This commit is contained in:
t-moe
2015-04-03 12:02:33 +02:00
commit 51089aaba1
16 changed files with 336 additions and 0 deletions

17
emulator/qt/ll_tft.cpp Normal file
View 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);
}