Skip to content

Instantly share code, notes, and snippets.

@detik19
Last active August 29, 2015 14:13
Show Gist options
  • Save detik19/5c552535789edb32afa4 to your computer and use it in GitHub Desktop.
Save detik19/5c552535789edb32afa4 to your computer and use it in GitHub Desktop.
/*
* HelloAtmelStudio.c
*
* Created: 07/01/2015 4:11:39
* Author: tedy.saputro
*/
#include <avr/io.h>
#include <util/delay.h>
#define F_CPU 12000000UL
int main(void)
{
DDRD=0xFF;
while(1)
{
PORTD=0xFF;
_delay_ms(2000);
PORTD=0x00;
_delay_ms(2000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment