U23 2007/Inhalt Abend 2/Binär durchzählen
< U23 2007 | Inhalt Abend 2
Revision as of 17:09, 21 May 2007 by Fd0 (talk | contribs) (U23 2007/Binär durchzählen moved to U23 2007/Inhalt Abend 2/Binär durchzählen)
#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; }