Optimize the initialization function to resolve the issue of noise in the first few frames caused by the lack of buffer initialization.
Description
Motivation and Context
The current image exhibits noise in the first few frames after each global refresh.
The reason is that the output buffer is not cleared after the refresh, resulting in the reading of random data, which causes the noise.
How Has This Been Tested?
It has been tested on Raspberry Pi Zero 2W + PiSugar3 + waveshare V3/V4 e-ink display.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Optimize the initialization function to resolve the issue of noise in the first few frames caused by the lack of buffer initialization.
Description
Motivation and Context
The current image exhibits noise in the first few frames after each global refresh. The reason is that the output buffer is not cleared after the refresh, resulting in the reading of random data, which causes the noise.
How Has This Been Tested?
It has been tested on Raspberry Pi Zero 2W + PiSugar3 + waveshare V3/V4 e-ink display.
Types of changes
Checklist:
git commit -s