ADD FLASH(flash.h flash.cpp flash_def.h flash_cfg.h flash_sfdp.cpp)
ADD RunTimer(log.h ticks.h ticks.cpp) ADD sim_key form sdl
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "t_tft.h"
|
||||
#include "sim_display.h"
|
||||
#include "tool.h"
|
||||
|
||||
#define LOG_WITH_RUN_TIMER
|
||||
#include "log.h"
|
||||
|
||||
TFT_T demo_tft;
|
||||
@@ -103,6 +105,10 @@ uint8_t tft_senddata(uint8_t *data, size_t len) {
|
||||
return result;
|
||||
}
|
||||
|
||||
int64_t GetSysCnt64() {
|
||||
|
||||
}
|
||||
|
||||
int Test_tft(void *arg) {
|
||||
//设备信息预填充
|
||||
demo_tft.width = 480;//实际如有支持不用填(如ST7735/7796)
|
||||
@@ -141,11 +147,11 @@ int Test_tft(void *arg) {
|
||||
TFT_ShowCHString(&demo_tft, 0, 60, "星海科技机械师", 1);
|
||||
|
||||
|
||||
TFT_DrawCircle(&demo_tft, 25, 25, 10);
|
||||
|
||||
|
||||
TFT_DrawCircle(&demo_tft, 25, 25, 15);
|
||||
TFT_DrawRoundedRect(&demo_tft, 200, 0, 100, 30, 8);
|
||||
TFT_DrawArc(&demo_tft, 200, 50, 30, 0, 360);
|
||||
TFT_DrawCross(&demo_tft, 25, 25, 10);
|
||||
|
||||
TFT_DrawXCross(&demo_tft, 25, 25, 10);
|
||||
|
||||
TFT_ShowString(&demo_tft, 60, 20, "JiXieShi", 16, 1);
|
||||
|
||||
@@ -162,6 +168,7 @@ int Test_tft(void *arg) {
|
||||
//
|
||||
// Sleep(5);
|
||||
// }
|
||||
|
||||
SIM_Display_STOP(&tft_display);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user