Closer to generated code
This commit is contained in:
14434
Core/Inc/ft_logo_grad.h
Normal file
14434
Core/Inc/ft_logo_grad.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -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();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user