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...) |
m (Kategorie) |
||
Line 33: | Line 33: | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category:U23 2007]] |
Latest revision as of 14:55, 7 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*/ } }