Driver for Diving Flashlite

  pinMode(hallPin, INPUT);

You have a hall attached to the pin?

Are you using an external resistor with that hall? Why? The Arduino has a perfectly good built in one that you are not using.

    if (ledPinwhite == 0 && ledPinblue == 0)

Given that these are constants, and do not have those values, it seems unlikely that this will ever be true.

    if (ledPinwhite == 64 && ledPinblue == 0)
    if (ledPinwhite == 128 && ledPinblue == 0)
    if (ledPinwhite == 254 && ledPinblue == 0)
    if (ledPinwhite == 0 && ledPinblue == 255)

Or any of these.