mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 03:27:45 +08:00
feat: refine remote states and PRTS LCD refresh
- add remote NOT_READY/READY/PROTECT state flow and matching LED/status display - speed up TFT hardware SPI DMA flush path and larger LVGL partial refresh buffer - reduce page/menu redraw artifacts and center the PRTS status title
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*TFT_TransferDoneCallback)(void *context, bool ok);
|
||||
|
||||
#define TFT_USE_HORIZONTAL 2U
|
||||
#define TFT_USE_SOFT_SPI 0U
|
||||
#define TFT_HW_SPI_BYTE_MODE 0U
|
||||
@@ -91,6 +93,10 @@ void TFT_DrawString(uint16_t x, uint16_t y, const char *text, uint16_t fc, uint1
|
||||
void TFT_ShowStatus(float temperature_c, RobotMode_t mode);
|
||||
bool TFT_IsReady(void);
|
||||
void TFT_WriteColorData(const uint8_t *data, uint32_t len);
|
||||
bool TFT_WriteColorDataDMA(const uint8_t *data,
|
||||
uint32_t len,
|
||||
TFT_TransferDoneCallback callback,
|
||||
void *context);
|
||||
const char *TFT_RobotModeText(RobotMode_t mode);
|
||||
|
||||
void LCD_Init(void);
|
||||
|
||||
Reference in New Issue
Block a user