🎓 Flashlight Brightness

𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯 An example of how to programmatically get and set the flashlight brightness. Tested on Samsung Galaxy J7 on Android 8.1. Other brands and versions may have different valid values for brightness; these can be set in the 'brightness' variable in block 4. If you change to the variable, keep in mind that the keys should be incremented and continuous starting at 1; and the values should be in order of least bright starting at key 1, getting brighter as the keys get higher. If the 'brightness' variable is set up correctly, the rest of the flow will take care of itself.