資源簡介
這是一個利用stm32控制迪文液晶的程序

代碼片段和文件信息
#include?“stm32f10x.h“
#include?“stm32f10x_it.h“
#include?“led1.h“
#include?“USART.h“
//#include?“stm32f10x_it.h“
#define?LED_1?????????????????????????GPIO_Pin_6??????????????/*DS1使用的GPIO管腳*/
#define?LED_2?????????????????????????GPIO_Pin_7 /*DS2使用的GPIO管腳*/
extern?unsigned?char?KeyStop_Flag;
unsigned?char?ii;
extern?unsigned?int?RxBuffer1[8];
//unsigned?char?rec[10];
unsigned?char?pic[3]={0xAA0x700x00}; ???//圖片顯示
unsigned?char?end[4]={0xCC0x330xC30x3C}; ?//結束標志
//unsigned?char?color[6]={0xAA0x400xF80x000x000x1F}; ???//設置當前調色板
//unsigned?char?qiewb[15]={0xAA0x7100x000x000x010xB50x020x800x010xE00x000x000x010xB5};?//剪切圖片顯示
void?Delay(vu32?nCount);
void?en(void)
{
USART1WriteDat(end4);
}
int?main(void)
{
? BSP_LED_Init();
????USART_Configuration();?
NVIC_Configuration();
????ii=0;
// BSP_LED_On();
// BSP_LED_Init(LED_2);
????while(1)
{
// USART1_Putc(0x06);
// USART1_Puts(“yanghai?haha\n“);
????if(KeyStop_Flag==0)
{
????pic[2]=ii;
???? USART1WriteDat(pic3);?
en();
ii++;
if(ii==13)
{
????ii=0;
}
}
//while(KeyStop_Flag);
BSP_LED_Off();
Delay(0x4FFFFF);
BSP_LED_On();
Delay(0x4FFFFF); ?
}
}
?/*******************************************************************************
*?Function?Name??:?Delay
*?Description????:?Inserts?a?delay?time.
*?Input??????????:?nCount:?specifies?the?delay?time?length.
*?Output?????????:?None
*?Return?????????:?None
*******************************************************************************/
void?Delay(vu32?nCount)
{
??for(;?nCount?!=?0;?nCount--);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1680??2012-03-26?21:33??stm32?control?deven?LCD\app\main.c
?????文件???????6182??2012-03-26?21:36??stm32?control?deven?LCD\app\stm32f10x_it.c
?????文件??????36557??2011-04-04?19:03??stm32?control?deven?LCD\app\system_stm32f10x.c
?????文件????????942??2012-03-19?20:33??stm32?control?deven?LCD\bsp\led1.c
?????文件????????428??2012-03-19?20:34??stm32?control?deven?LCD\bsp\led1.h
?????文件???????3030??2012-03-25?20:18??stm32?control?deven?LCD\bsp\USART.c
?????文件????????288??2012-03-25?20:18??stm32?control?deven?LCD\bsp\USART.h
?????文件???????3259??2011-04-04?19:03??stm32?control?deven?LCD\cfg\stm32f10x_conf.h
?????文件???????2210??2012-03-26?14:21??stm32?control?deven?LCD\cfg\stm32f10x_it.h
?????文件???????3592??2012-09-06?13:24??stm32?control?deven?LCD\mdk\core_cm3.crf
?????文件????????138??2012-09-06?13:24??stm32?control?deven?LCD\mdk\core_cm3.d
?????文件??????10908??2012-09-06?13:24??stm32?control?deven?LCD\mdk\core_cm3.o
?????文件?????????19??2012-03-27?15:54??stm32?control?deven?LCD\mdk\ExtDll.iex
?????文件????????497??2012-09-06?13:25??stm32?control?deven?LCD\mdk\Jli
?????文件??????42026??2012-09-06?14:07??stm32?control?deven?LCD\mdk\Jli
?????文件????????285??2012-03-19?20:40??stm32?control?deven?LCD\mdk\Jli
?????文件?????349490??2012-09-06?13:24??stm32?control?deven?LCD\mdk\led1.crf
?????文件???????2904??2012-09-06?13:24??stm32?control?deven?LCD\mdk\led1.d
?????文件?????386640??2012-09-06?13:24??stm32?control?deven?LCD\mdk\led1.o
?????文件?????350467??2012-09-06?13:24??stm32?control?deven?LCD\mdk\main.crf
?????文件???????2959??2012-09-06?13:24??stm32?control?deven?LCD\mdk\main.d
?????文件?????389880??2012-09-06?13:24??stm32?control?deven?LCD\mdk\main.o
?????文件?????350142??2012-09-06?13:24??stm32?control?deven?LCD\mdk\misc.crf
?????文件???????3046??2012-09-06?13:24??stm32?control?deven?LCD\mdk\misc.d
?????文件?????389664??2012-09-06?13:24??stm32?control?deven?LCD\mdk\misc.o
?????文件?????286480??2012-09-06?13:25??stm32?control?deven?LCD\mdk\mypractice0318.axf
?????文件???????8090??2012-09-06?13:25??stm32?control?deven?LCD\mdk\mypractice0318.hex
?????文件??????47061??2012-09-06?13:25??stm32?control?deven?LCD\mdk\mypractice0318.htm
?????文件????????482??2012-09-06?13:25??stm32?control?deven?LCD\mdk\mypractice0318.lnp
?????文件??????91190??2012-09-06?13:25??stm32?control?deven?LCD\mdk\mypractice0318.map
............此處省略46個文件信息
評論
共有 條評論