2014-02-08 10:07 AM
DMA2D accelerated, the sources are here: https://github.com/true-grue/stm32f429_graphics
Tested on STM32F429I-DISCO board with external 480x272 LCD. Hope someone will find it helpful.2014-02-08 11:38 AM
I see some useful functions in the library.
But i see some thing you can improve , like check if you try to set a pixel out the screen. This kind of mistake made me crash sometime the st429 :) It's why i do a clipping. If you want add other functionality to your lib you can check my source here : https://sites.google.com/site/suprabotics/source-code Cheers. PS : is the st429 fully supported by Coocox now ??2014-02-09 02:14 AM
Thank you for your interest!
To prevent crashing I use bitwise & mask when accessing to the video buffer. Quick and dirty :) I don't know why, but when I use only DMA2D with negative coordinates there is no crashing. I found that it's easier to test the code (for clipping etc) on PC with a SDL-based simulator (it's on github now too) for the graphics library. Also I've added Python scripts for converting png and font (created with BMFont utilty) data to C code.It's my own, custom CooCox project. It was made with help of flash loader (2 mb support) from here http://olek.tk/blog/index.php?post/2013/11/10/STM32F429I-FLASH-driver-for-CooCoxP.S. I'll check your library soon, thanks for the link!