Changing the OLED display contrast at specific times

This might help: