2015-02-05 20:52:15 +03:00
|
|
|
#include <avr/io.h>
|
|
|
|
#include <util/delay.h>
|
|
|
|
#include "easyavr.h"
|
|
|
|
|
2015-08-07 11:28:31 +03:00
|
|
|
#define LED_PORT PORTD
|
|
|
|
#define LED_PIN 0
|
|
|
|
#define LED_DDR DDRD
|
2015-02-05 20:52:15 +03:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2015-08-07 11:28:31 +03:00
|
|
|
PIN_AS_OUTPUT(LED_DDR, LED_PIN);
|
|
|
|
|
2015-02-05 20:52:15 +03:00
|
|
|
while (1) {
|
2015-08-07 11:28:31 +03:00
|
|
|
PIN_ON(LED_PORT, LED_PIN);
|
2015-02-05 20:52:15 +03:00
|
|
|
_delay_ms(100);
|
2015-08-07 11:28:31 +03:00
|
|
|
PIN_OFF(LED_PORT, LED_PIN);
|
2015-02-05 20:52:15 +03:00
|
|
|
_delay_ms(100);
|
|
|
|
}
|
|
|
|
}
|