Implemented lcd display without flickering