Quote:
Originally Posted by MazdaMatt
Holy crap, a lot happened this weekend.
Paul - mixed up pins and wrong size holes... you can file that under "isht happens". Even with a dozen eyes on it, it still happens.
Re: (128+64+blah blah blah), vs 0xFD - Both are wrong. Use a #define with a good descriptive value.  No "Magic Numbers" in programming.
|
Agreed, a set of MASK values is a good plan.
#define BIT0_MASK 0x0001;
then you can use the mask and !mask to & and | as you please.