Closer to generated code

This commit is contained in:
2023-01-17 20:48:48 +01:00
parent 50cfe87592
commit 1f75666d9d
4 changed files with 14444 additions and 6 deletions

14434
Core/Inc/ft_logo_grad.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -21,10 +21,12 @@
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "ft_logo_grad.h"
#include "ft_logo_orange.h"
#include "stm32h7xx_hal.h"
#include "stm32h7xx_hal_ltdc.h"
#include <stdint.h>
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@ -106,8 +108,8 @@ void DISP_Init() {
// Data read on rising edge of DCLK
// HSYNC & VSYNC Activ low
// DE Active high
// Horizontal front porch 5
// Vertical front porch 2
// Horizontal back porch 5
// Vertical back porch 2
uint8_t data2[] = {0x53, 0x00, 0x05, 0x02};
DISP_WriteReg(0xB3, data2, sizeof(data2));
// SET cyc
@ -183,6 +185,7 @@ int main(void) {
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_LTDC_Init();
MX_USART3_UART_Init();
MX_USB_OTG_HS_USB_Init();
/* USER CODE BEGIN 2 */
@ -194,7 +197,6 @@ int main(void) {
HAL_Delay(150);
DISP_Init();
HAL_Delay(500);
MX_LTDC_Init();
// if (HAL_LTDC_Reload(&hltdc, LTDC_RELOAD_IMMEDIATE) != HAL_OK) {
// Error_Handler();
// }