Added Eclipse IDE examples

This commit is contained in:
Ivan Kravets
2014-06-16 22:45:24 +03:00
parent 5e07c08055
commit a39bfd8f3d
22 changed files with 605 additions and 0 deletions
@@ -0,0 +1,23 @@
/**
* Copyright (C) Ivan Kravets <me@ikravets.com>
* See LICENSE for details.
*/
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
// make the LED pin an output for PORTB5
DDRB = 1 << 5;
while (1)
{
_delay_ms(500);
// toggle the LED
PORTB ^= 1 << 5;
}
return 0;
}