mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 11:37:44 +08:00
tft lvgl test ok
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "main.h"
|
||||
#include "robot_def.h"
|
||||
#include "spi.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -14,6 +15,7 @@ extern "C" {
|
||||
#define TFT_USE_SOFT_SPI 0U
|
||||
#define TFT_HW_SPI_BYTE_MODE 1U
|
||||
#define TFT_HW_SPI_PULSE_CS 1U
|
||||
#define TFT_HW_SPI_STREAM_COLOR 1U
|
||||
|
||||
#if (TFT_USE_HORIZONTAL == 0U) || (TFT_USE_HORIZONTAL == 1U)
|
||||
#define TFT_LCD_W 240U
|
||||
@@ -87,6 +89,8 @@ void TFT_FillRect(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint1
|
||||
void TFT_DrawPoint(uint16_t x, uint16_t y, uint16_t color);
|
||||
void TFT_DrawString(uint16_t x, uint16_t y, const char *text, uint16_t fc, uint16_t bc, uint8_t scale);
|
||||
void TFT_ShowStatus(float temperature_c, RobotMode_t mode);
|
||||
bool TFT_IsReady(void);
|
||||
void TFT_WriteColorData(const uint8_t *data, uint32_t len);
|
||||
const char *TFT_RobotModeText(RobotMode_t mode);
|
||||
|
||||
void LCD_Init(void);
|
||||
|
||||
Reference in New Issue
Block a user