新手入门
- 积分
- 9
- 金钱
- 9
- 注册时间
- 2016-5-12
- 在线时间
- 3 小时
|

楼主 |
发表于 2016-5-12 15:03:28
|
显示全部楼层
#include "stm32f4xx.h"
#include "stdio.h"
#include "uart.h"
#include "SysTick.h"
#include "lcd.h"
#include "Gpio.h"
//#include "stm32f10x.h"
#include "tm1638.h"
void Menu_RFIDTest(void)
{ u8 j,i,t;
unsigned long temp;
//LCD_ShowString(150, 60, "±¸×¢£o°′èÎòa°′¼ü½øèëày3ì2aêÔ½çÃæ", Red, Black);
//while(Read_key()!=0x07)
while(1)
{
Send_Com();
}
///½áêøoóμÄ′|àí
}
////////////////////////////////////////////////
void nvic_config(void)
{
NVIC_InitTypeDef NVIC_InitStructure;
/* NVIC configuration */
/* Configure the Priority Group to 2 bits */
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
/* Enable the USART3 Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
/* Enable the USART6 Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = USART6_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}
int main(void)
{
u8 keyDat,i,j;
u8 Menu_flag=0;
u8 Menu_Value[2];//¶¨òåá½¼¶2Ëμ¥
SysTick_Init();
nvic_config();
uart_init();
uart6_init();
lcd_init(); /*Ïμí33õê¼»ˉ*/
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
lcd_clear(Black);
LCD_DrawRectangle(0,0, 479, 271, Green);
LCD_DrawRectangle(5,5, 474, 266, Green);
LCD_ShowString(150, 0, "--STM32F407 êμÑé¿a·¢ƽì¨--", Red, Black);
LCD_ShowString(60,60, " êμÑé7:RFIDêμÑé", White, Black);
LCD_ShowString(60, 120, "1£©2ù×÷2½Öè£o°ÑRFIDÄ£¿é2åμ½à©Õ1Ä£¿éBλÖÃ", White, Black);
LCD_ShowString(60, 150, "2£©2ù×÷2½Öè£oóÃ′®¿úÏßᬽó′®¿ú", White, Black);
LCD_ShowString(30, 150, "êμÑé½á1û£oË¢¿¨ÏÔê¾Ïà1ØDÅÏ¢", White, Black);
while(1)
Menu_RFIDTest();
}
这是RFID的读操作, 数码管的修改代码怎么写 |
|