Random HexBright (programmable flashlight) related code