I am using this library on a MIMAX 3 and the BRIGHTNESS_MAX is 4095. The library has a hardcoded value of 255 which prevents me from setting the screen brightness to the max.
I think the value BRIGHTNESS_MAX should be based on the device instead of a hardcoded value.