Refactored Project Structure for use with emulator
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include "app.h"
|
||||
#include "tft.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void app_init() {
|
||||
tft_init();
|
||||
|
||||
tft_draw_line(10,10,30,40,0b11111);
|
||||
|
||||
}
|
||||
|
||||
void app_process() {
|
||||
/// printf("hello world\n");
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
void app_init();
|
||||
void app_process();
|
||||
@@ -0,0 +1,14 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
bool ll_tft_init();
|
||||
void ll_tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "tft.h"
|
||||
#include "ll_tft.h"
|
||||
|
||||
|
||||
|
||||
bool tft_init() {
|
||||
return ll_tft_init();
|
||||
|
||||
}
|
||||
|
||||
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) {
|
||||
ll_tft_draw_line(x1,y1,x2,y2,color);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#include<stdbool.h>
|
||||
#include<stdint.h>
|
||||
|
||||
bool tft_init();
|
||||
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
|
||||
Reference in New Issue
Block a user