Friday, 14 January 2011

Bit Twiddling

The Android Notification system is a real blast from the past.

Last time I has to "or" bits into bit fields to make things happen is was writing an embedded controller for a medical pump.

It would be OK if the flags names made any sense, but it's taken me 2 hours reading the documentation and a few testcases to figure out WTF the really mean, come on guys give me a sane object API please.

I've still not got the lights going. It's not like these are memory mapped bits that actually make the hardware do things, that can be the only excuse for bit twiddling IMHO. I'll check the AOSP, I bet some other programmer has to "and" all my bits out one by one to actually make any sense of it.

I do like the attempt at being able to set the LED RGB colour though. I'm going to have to make a colour picker for that.

No comments:

Post a Comment