上傳一個ili9341對應(yīng)的stm32 cortex_M3 的emwin例程
IO口模擬8080時序
stm32 單片機源程序如下:
- /**********************************************************
- STemWin5.22移植實驗
- * @ 硬件平臺:STM32最小系統(tǒng)板
- **********************************************************/
- #include "STM32_config.h"
- #include "led.h"
- #include "lcd_tft.h"
- #include "lcd_drive.h"
- #include "GUI.h" //emwin相關(guān)頭文件
- #include "GUIDEMO.h"
- /**********************************************************
- 主函數(shù)
- **********************************************************/
- int main(void)
- {
- // u8 i;
-
- delay_init(72); //初始化延時函數(shù)
- USART1_Init(9600); //初始化串口,設(shè)置波特率為9600bps
- LED_Init(); //初始化LED接口
- SysTick_Config(SystemCoreClock / 1000);
- RCC_AHBPeriphClockCmd(RCC_AHBPeriph_CRC, ENABLE); //開啟CRC時鐘
- WM_SetCreateFlags(WM_CF_MEMDEV);
- GUI_Init();
-
- GUI_DispStringAt("Hello World!", 30, 200);
- GUI_DispStringAt("Hello emWin!", 30, 216);
- delay_ms(1000);
- GUIDEMO_Main();
- // while(1)
- // {
- // i++;
- // delay_ms(10);
- // if(i == 30)
- // {
- // LED0 = ~LED0;
- // i = 0;
- // }
- // }
- }
復(fù)制代碼 程序缺文件無法編譯 求幫助:
STemWin5.22移植(MiniSTM32 V3.0).7z
(537.71 KB, 下載次數(shù): 51)
2022-11-15 18:41 上傳
點擊文件名下載附件
|