How to increase brightness in code

Did you try getBrightness() and or setBrightness() functions of the Adafruit library?

neopixfuncs