use avr style delay instead of just counting