用 SDK_2.3.1_MIMXRT1052xxxxx(官方SDK原件)中的emWin列程 )运行 官方的参考代码 GUI_MEMDEV_RotateHQ 旋转功能:
GUI_MEMDEV_Handle hMemSource;
GUI_MEMDEV_Handle hMemDest;
GUI_RECT RectSource = {0, 0, 69, 39};
GUI_RECT RectDest = {0, 0, 79, 79};
hMemSource = GUI_MEMDEV_Create(0, 0, 70, 40);
hMemDest = GUI_MEMDEV_Create(0, 0, 80, 80);
GUI_MEMDEV_Select(hMemSource);
GUI_DrawGradientV(0, 0,
69, 39,
GUI_WHITE, GUI_DARKGREEN);
GUI_SetColor(GUI_BLUE);
GUI_SetFont(&GUI_Font20B_ASCII);
GUI_SetTextMode(GUI_TM_TRANS);
GUI_DispStringInRect("armfly", &RectSource, GUI_TA_HCENTER | GUI_TA_VCENTER);
GUI_DrawRect(0, 0, 69, 39);
GUI_MEMDEV_RotateHQ(hMemSource, hMemDest,
5,
20,
30 * 1000,
1000);
GUI_MEMDEV_CopyToLCDAt(hMemSource, 140, 140);
GUI_MEMDEV_CopyToLCDAt(hMemDest, 40, 40);
运行一个while(1)循环,让他连续增加角度运行,奇迹出现了,这么小一个图片帧率居然只有1~2帧,一个600Mhz和mcu 不应该只能这么一点性能呀!
请教@原子 大神 这是不是RT1052的正常性能!非常不解 |
|
|