Quote from: yerzhik on May 21, 2012, 06:54 pmWhat is the problem?What you are trying to do is trivially simple and could be done in a couple of lines of code using the Arduino libraries.The approach you're using attacks the hardware directly, which is much harder to implement. Why don't you simply do it the easy way?
What is the problem?
PORTB &= (1 << LED);// ...PORTB |= ~(1 << LED);
PORTB &= (1 << [b](LED-1)[/b]);// ...PORTB |= ~(1 << [b](LED-1)[/b]);
PORTB maps to Arduino digital pins 8 to 13 The two high bits (6 & 7) map to the crystal pins and are not usable
I was wondering why that strange things happened.
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