First things first.
That light is also wired to the reservoir of your master cylinder. I would bet if you check the cylinder it is a bit low.
As your brakes wear the fluid lowers. Once it lowers to a certain point, the float activates the light.
When it flashes or flickers that is normally a result of the fluid being close to the low level and moving around just enough to trip the light.