|
自己写的开发板,下载吧大家stmF红龙429汉字显示
[复制链接]
红龙429开发板(WB-RedDragon429)\
是基于ST公司STM32F429IGT6(LQFP176)控制器的一款学习板,\
该控制器以ARM Cortex-M4 内核为核心,自带有LCD-TFT控制器、\
图形专用Chrom-ART加速器和SDRAM存储器接口,LCD-TFT控制器最大\
支持1024*768的双图层;带有FPU 单元,提升了计算能力,可以进行\
一些复杂的计算和控制,使用工业标准的性能评测工具测试,具有\
225DMIPS(Dhrystone MIPS)和608 CoreMark (EEMBC Coremark性能基准评测)\
的优异表现,多达2MB FLASH/256KB RAM,USB OTG HS/FS,Ethernet,17个定时器,\
3个ADC,15个通讯接口和一个摄像头接口,主频高达180MHz,
/**
* @file main.c
* @author WB R&D Team - openmcu666
* @version V0.1
* @date 2015.12.23
* @brief Main Program body
*/
#include "stm32f4xx.h"
#include "Gpio.h"
#include "usart.h"
#include "delay.h"
#include "stm32f429i_lcd.h"
#include "ff.h"
#include "W25Q16.h"
void Delay(uint32_t Time)
{
uint32_t i;
i = 0;
while (Time--)
{
for (i = 0; i < 5000; i++);
}
}
FATFS fatfs;
/*****************************************************************************
** Main Function main()
******************************************************************************/
int main(void)
{
USART1_Init();
LED_Init();
LCD_Init();
LCD_LayerInit();
LTDC_Cmd(ENABLE);
LCD_SetLayer(LCD_FOREGROUND_LAYER); //使能前景层
LCD_Clear(WHITE);
printf("\r\n");
printf("Hello Welcome.\r\n");
printf("Thank You For Choosing Our Products.\r\n");
printf("Thank You Very Much.\r\n");
printf("This Example display chinese.\r\n");
printf("\r\n");
printf("SPI Initialization...\r\n");
if(!W25Qxx_Init())
{
LCD_DisplayStr(0,30,"W25Q16 Init OK!",BLUE,WHITE,size16x16);
WriteHZ16(); //烧写16*16字库
printf("Ok,Let's Go...\r\n");
}
else
{
LCD_DisplayStr(0,30,"W25Q16 Init fail!",BLUE,WHITE,size16x16);
}
LCD_DrawFullRect(0, 0, 480, 16);
LCD_DisplayStr(0,0,"www.openmcu.com",WHITE,BLUE,size16x16);
GUI_Put(32, 60, (u8*)Introduction, BLACK,WHITE );
GUI_Put(180,236, "红龙开发板汉字库实验,作者-openmcu666", RED, WHITE); //
while(1)
{
LED_Toggle(1);
Delay(1000);
}
}
ST官网https://openmcu.taobao.com
|
|