View Single Post
Old 06-08-2009, 09:16 AM   #1626 (permalink)
squiggles
EcoModding Apprentice
 
Join Date: May 2009
Location: Australia
Posts: 109
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MazdaMatt View Post
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.
  Reply With Quote