Set return type of getBrightness() to be float, not bool