You can also use direct port manipulation without fors or whiles:Code: [Select]DDRD = DDRD | B0111111; // pins 2-7DDRB = DDRB | B10000000; // pin 8
DDRD = DDRD | B0111111; // pins 2-7DDRB = DDRB | B10000000; // pin 8
DDRD |= B11111100; // pins 2-7 as outputDDRB |= B00000111; // pins 8-10 as outputPORTD &= ~B11111100; // set pins 2-7 as LOWPORTB &= ~B00000011; // set pins 8-10 as LOW
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16