joukos / PaperTTY

PaperTTY - Python module to render a TTY or VNC on e-ink
942 stars 101 forks source link

Replace initial draw with call to the clear function. #109

Closed mcarr823 closed 10 months ago

mcarr823 commented 11 months ago

Tiny change to panel initialization for IT8951 driver. The code at the end of the initialization does the same thing as the clear function, except it does so less efficiently because it uses image mode "L" (grayscale) instead of mode "1" (black & white). Replacing those two lines of code reduces repeat code and makes it slightly faster because of the different image mode.