/*
* LED.c
*
* Created: 01/06/2016 2:54:52 PM
* Author: NANDHA */
#include <asf.h>
#include<led.h>
#include<delay.h>
#include<gpio.h>
int main (void)
{
// Insert system clock initialization code here (sysclk_init()).
board_init();
while(1)
{
LED_On(LED0);
delay_ms(1000);
LED_Off(LED0);
delay_ms(1000);
LED_On(LED1);
delay_ms(500);
LED_Off(LED1);
}
// Insert application code here, after the board has been initialized.
}
* LED.c
*
* Created: 01/06/2016 2:54:52 PM
* Author: NANDHA */
#include <asf.h>
#include<led.h>
#include<delay.h>
#include<gpio.h>
int main (void)
{
// Insert system clock initialization code here (sysclk_init()).
board_init();
while(1)
{
LED_On(LED0);
delay_ms(1000);
LED_Off(LED0);
delay_ms(1000);
LED_On(LED1);
delay_ms(500);
LED_Off(LED1);
}
// Insert application code here, after the board has been initialized.
}
No comments:
Post a Comment