Project works USB powered, fails adapter powered

The RGB switch is being debounced (the delay() does this). The White switch is not.

The flickering and lower intensity implies that the power supply you have is under-powered.