Answer to: Light won't stay on more than 1 secondHi Tom. To me this seems like an electronics issue. I would contact Christian directly on this one. It sounds like the Atmega168 is unable to hold the voltage regulator in the "on" state. If you know what you're doing, here are a few possible reasons for the behavior you're seeing: (1) R19 may be missing, tombstoned, or otherwise not soldered properly (2) Pin 10 on the Atmega168 is an open circuit or shorted to an adjacent pin (3) The Atmega168's I/O pin is refusing to be driven high I'm assuming here that R19 is the same component designator used in the v0.5 board. It appears that it is the same from looking at pictures of the board. I have yet to receive my flashlights to confirm.
Answer to: Typo in accelerometer code?This is actually an infrequently used C idiom that forces the result to be true (1) or false (0). It has nothing to do with Arduino. So in the case where (tilt & 0x20) is 0x20, the result is 1. It is a lot easier to read than say.. (tilt & 0x20) >> 5