Hi,
A beginner here. Trying to make a blink LED program but the _delay_ms() function is not working. Pls assist.
/*
* GccApplication1.c
*
#define F_CPU
#define F_CPU 16000000UL
#endif
#include <avr/io.h>
#include <delay.h>
int main(void)
{
DDRD=0xFF;
while (1)
{
PORTD=0xFF;
_delay_us(1000)
PORTD=0x00;
_delay_us(1000)
}
}