added support to change brightness of LED