Prevent display to sleep while charging
there is a setting in developer options on your phone that allows you to keep your display awake whilst charging it. It is enabled by going to settings, then scrolling all the way down to about. From there scroll all the way down to build number and tap it 7 times to enable developer mode. Next, click the back button then click on Developer options. Click the tick to turn it on (already on in default). Finally, turn the tick on for Stay awake and your phone will stay awake while charging.