auto brightness control with gy-49 for raspberry pi3 touchscreen. git the files on your file system. add .service file in sysyemmd for auto start.
gy-49 is ambient light sensor with MAX44009 chip.
chip uses i2c protocol. connect the chip to GPIO2 and 3 of Pi.
code is adapted from https://github.com/ControlEverythingCommunity