#include "stm32f4xx.h"
#include "delay.h"
#include "LED.h"
#include "beep.h"
#include "key.h"
int main(void)
{
BEEP_Init();
delay_init(168);
LED_Init();
while(1)
{
if(KEY0==0)
{
delay_ms(5);
if(KEY0==0)
{
LED0=0;
}
while(KEY0!=0)
{
LED0=1;
}
} |