STM32 HAL library example

This commit is contained in:
Anton Mukhin
2025-06-23 12:31:24 +03:00
parent 30142fda26
commit 1eb463c94f
4 changed files with 143 additions and 0 deletions

21
STM32_HAL_Lib/mctext.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* mctext.h
*
* Created on: May 16, 2025
* Author: User
*/
#ifndef INC_MCTEXT_H_
#define INC_MCTEXT_H_
#include "stm32f1xx_hal.h"
// Draw a single character. Returns width of drawn character
uint8_t mct_Char(uint8_t x, uint8_t y, unsigned char c, uint8_t color, const uint8_t *font);
// Draw a string of characters
void mct_String(uint8_t x, uint8_t y, const char *c, uint8_t color, const uint8_t *font);
#endif /* INC_MCTEXT_H_ */