nvm

I read up on using an internal timer.

DDRB |= (1 << 0); // Set LED as output

TCCR1B |= ((1 << CS10) | (1 << CS11)); // Set up timer at Fcpu/64 

Used a while loop to count

while (TCNT1 < 50000) //less than 50 ms
{ 
 show x
}

TCNT1 = 0;

rince repeat :)
-- 
View this message in context: 
http://www.nabble.com/ATmega88-%2B-triple-7-Segment-Display-%28CC%29-tp15708386p16454185.html
Sent from the AVR - General mailing list archive at Nabble.com.



_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to