Demo to show how to control brightness though codes.