Mar-25-2019, 03:30 AM
Brightness starts with off. This changes from a slider in php which writes to the alpha.txt file. The code in the while True loop looks for a change in the value and writes it to the GPIO pin. The reason brightness is set to 0 at the start is so that when the Pi boots up the light starts off.