Difference between revisions of "U23 2007/Inhalt Abend 2/Binär durchzählen"
< U23 2007 | Inhalt Abend 2
m (Kategorie) |
|||
Line 24: | Line 24: | ||
return 0; | return 0; | ||
} | } | ||
+ | |||
+ | [[Category:U23 2007]] |
Latest revision as of 13:37, 1 June 2007
#include <avr/io.h> int main(void) { DDRA = 0xFF; PORTA = 0x00; while (1) { PORTA *= 2; if(PORTA == 0x00) { PORTA = 0x01; } uint16_t i; uint16_t j; for (i = 0; i < 5; i++) { for (j = 0; j < 0xffff; j++) { /* nix */ } } } return 0; }