Skip to content

Commit c216bd2

Browse files
committed
Tidy up video example
1 parent 92a592f commit c216bd2

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

examples/Envie_video/Envie_video.ino

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,40 @@ void setup() {
1717
Serial.begin(115200);
1818
printf("starting\n");
1919

20+
MPU_Config_Video();
21+
2022
/* Initialize the LCD */
2123
if (BSP_LCD_Init() != LCD_OK)
2224
{
2325
Error_Handler();
2426
}
2527

26-
printf("after BSP_LCD_Init\n");
27-
2828
BSP_LCD_LayerDefaultInit(0, LAYER0_ADDRESS);
2929
BSP_LCD_SelectLayer(0);
3030

31-
printf("before LCD_BriefDisplay\n");
32-
3331
/* Display example brief */
3432
// LCD_BriefDisplay();
3533

36-
printf("after LCD_BriefDisplay\n");
37-
3834
anx7625_i2c_probe(&anx7625);
3935

40-
delay(1000);
41-
36+
/*
4237
anx7625_debug("dumpall");
43-
anx7625_debug("dpi 0");
44-
anx7625_debug("dsi 0");
38+
anx7625_debug("dpi 7");
39+
anx7625_debug("dsi 7");
4540
anx7625_start_dp();
4641
anx7625_debug("edid");
47-
42+
*/
4843

4944
/* Infinite loop */
5045
while (1)
5146
{
52-
//anx7625_main();
53-
printf("CopyBuffer\n");
5447
CopyBuffer((uint32_t *)Images[ImageIndex ++], (uint32_t *)LAYER0_ADDRESS, (BSP_LCD_GetXSize() - 320) / 2, 160, 320, 240);
5548

5649
if (ImageIndex >= 1)
5750
{
5851
ImageIndex = 0;
5952
}
6053

61-
printf("LOOPING\n");
6254
/* Wait some time before switching to next stage */
6355
HAL_Delay(2000);
6456
}

examples/Envie_video/defs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ void CopyBuffer(uint32_t *pSrc,
99
uint16_t xsize,
1010
uint16_t ysize);
1111
void LCD_BriefDisplay(void);
12+
void MPU_Config_Video();
1213
#ifdef __cplusplus
1314
}
1415
#endif

examples/Envie_video/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void CopyBuffer(uint32_t *pSrc, uint32_t *pDst, uint16_t x, uint16_t y, uint16_t
6464
}
6565
}
6666

67-
static void MPU_Config(void)
67+
void MPU_Config_Video(void)
6868
{
6969
MPU_Region_InitTypeDef MPU_InitStruct;
7070

0 commit comments

Comments
 (0)