add ASCII FONT drawing function
This commit is contained in:
@ -29,6 +29,8 @@
|
||||
#include "RotaryCoder.h"
|
||||
#include "st7735.h"
|
||||
#include "ui.h"
|
||||
#include "bmfont.h"
|
||||
#include "asciifont.h"
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
@ -113,7 +115,8 @@ int main(void)
|
||||
LCD_init();
|
||||
ST7735_FillScreen(ST7735_WHITE);
|
||||
printf("Begin draw number\n");
|
||||
ui_text_number18x32(10086, 0, 0, 0xFF00);
|
||||
ui_text_number18x32(10086, 0, 0, ST7735_BLUE);
|
||||
bmf_draw_text(font_unifont_16x16, u8str("Test Ascii\nHello Dragon Ok~~~~"), 29, 0, 40, 160, 64, ST7735_BLACK);
|
||||
printf("End draw number\n");
|
||||
/* USER CODE END 2 */
|
||||
|
||||
|
Reference in New Issue
Block a user