Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stm32fxxx_hal.h"
- #include "defines.h"
- #include "tm_stm32_disco.h"
- #include "tm_stm32_delay.h"
- #include "tm_stm32_lcd.h"
- TM_FONT_SIZE_t FontSize;
- #if defined(STM32F7_DISCOVERY)
- char str[] = "This is LCD driver for F7-Discovery board";
- #elif defined(STM32F439_EVAL)
- char str[] = "This is LCD driver for F439-Eval board";
- #elif defined(STM32F429_DISCOVERY)
- char str[] = "F429-Discovery board";
- #endif
- int x=0;
- int y=0;
- long z=0;
- int q=0;
- TIM_HandleTypeDef TIM_Handle;
- uint32_t zaehl=0;
- int main(void) {
- TM_RCC_InitSystem();
- HAL_Init();
- TM_LCD_Init();
- TM_LCD_Fill(0x0000);
- TM_LCD_SetFont(&TM_Font_16x26);
- TM_LCD_SetXY((TM_LCD_GetWidth() - FontSize.Width) / 2, (TM_LCD_GetHeight() - FontSize.Height)*2);
- TM_LCD_Puts("Systemtest");
- while (1) {
- zaehl=zaehl+1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement