PORTB &= ~1<<PINB5; delay(1000); PORTB |= 1<<PINB5; delay(1000);
PORTB &= ~1<<PINB5;
What CB said, check out operator precedence, remember that these core functions have been around for a LONG time, the chance of an undocumented bug is essentially 2/5ths of 5/8ths of bugger all.
PORTB &= ~(1<<PINB5); delay(1000); PORTB |= (1<<PINB5); delay(1000);
(of course I set the DDR on port B by using pinMode in Arduino).
but a lot of experienced people here don't seem to read my issue and just comment by doing lucky guesses...
I won't go further with this.
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