Hi guys, I have a problem solving this particular question. Can you please help me out ?
Write a program to vary the brightness of an led using transistor as an interface.The range of brightness should be divided into 5 levels. The user can either input 'one' , 'two' , 'three' , 'four', 'five' to get the brightness of the corresponding levels. Now to solve this problem, i need to get the maximum brightness of the led in use in order to divide the brightness into 5 levels. How do i get this maximum brightness of the led in use through coding ?