Skip to content

Instantly share code, notes, and snippets.

@prasant1010
Created August 24, 2016 05:30
Show Gist options
  • Save prasant1010/a4fe1cfacfd9393a26b23d67f5609e59 to your computer and use it in GitHub Desktop.
Save prasant1010/a4fe1cfacfd9393a26b23d67f5609e59 to your computer and use it in GitHub Desktop.
#ifndef F_CPU
#define F_CPU 1000000UL
#endif
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
     DDRA=0b00000001;
while(1)
{
               PORTA=0b00000001;
              _delay_ms(1000);
              PORTA=0b00000000;
            _delay_ms(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment