![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Lab4 DMA2D Embedded Systems
Dependencies: BSP_DISCO_F746NG mbed
Revision 4:eecb962016bf, committed 2017-11-01
- Comitter:
- codebreaker7
- Date:
- Wed Nov 01 10:57:20 2017 +0000
- Parent:
- 3:ed3e2096b46f
- Commit message:
- Added offset
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Oct 29 11:37:34 2017 +0000 +++ b/main.cpp Wed Nov 01 10:57:20 2017 +0000 @@ -57,7 +57,7 @@ hdma2d.Init.OutputOffset = 480 - 50; HAL_DMA2D_Init(&hdma2d); //HAL_DMA2D_Start(&hdma2d, 0x00000000, LCD_FB_START_ADDRESS + offset + xpos_offset, 150, 150); - HAL_DMA2D_Start(&hdma2d, 0xffff0000, LCD_MEM_ADDR, 50, 50); + HAL_DMA2D_Start(&hdma2d, 0xffff0000, LCD_MEM_ADDR + (10 + 10 * 480) * 4, 50, 50); while(HAL_DMA2D_PollForTransfer(&hdma2d, 1000) != HAL_OK); // and move to the next