How to increase brightness in code

Yes I did try to define brightness and add setBrightness() in the setup function. But didn't work