Difference between revisions of "U23 2007/Evil Solutions/takt.c"
< U23 2007 | Evil Solutions
(New page: <pre> #include <avr/io.h> void delay (uint8_t); int main(){ DDRA = 0xFF; while(1){ PORTA = 0x01; delay(1); PORTA = 0x00; delay(1); } return 0; } void delay(uint8_t adelay){ uint16...) |
(No difference)
|
Revision as of 22:20, 4 June 2007
#include <avr/io.h> void delay (uint8_t); int main(){ DDRA = 0xFF; while(1){ PORTA = 0x01; delay(1); PORTA = 0x00; delay(1); } return 0; } void delay(uint8_t adelay){ uint16_t a; uint16_t b; for (a=0; a < adelay; a++) for (b=0; b < 0xFF; b++){ PORTB = 0x00; /*nix*/ } }