I'm having trouble with this code:
int counter = 0; int good = 0x2A; ISR(TIMER0_OVF_vect) { ++counter; } int bit_slice (int x) { return (x & 0x3C); // these don't work either.... // return (x & 0x7E); // return (x & 0x3E); } bool truth (int x) { return (bit_slice(counter) == good); }
It's like the counter is not even updating.
The truth is not good no matter how I slice it.
--Mike