/*************************************************** * Fast-counter.ino * * A fast binary counter works by controling the * registers rather than using digitalWrite(). ***************************************************/ /************************************************** * setup() Function **************************************************/ void setup() { DDRB = B00111111; // Pins 8-13 set to output. } /************************************************** * loop() Function **************************************************/ void loop() { for(int i=0;i<64;i++) { PORTB = i; delay(500); } }