mirror of
https://github.com/tsl0922/EPD-nRF5.git
synced 2026-01-26 00:42:23 +08:00
init before sending image
This commit is contained in:
@@ -217,6 +217,8 @@ async function sendimg() {
|
|||||||
|
|
||||||
updateButtonStatus(true);
|
updateButtonStatus(true);
|
||||||
|
|
||||||
|
await write(EpdCmd.INIT);
|
||||||
|
|
||||||
if (ditherMode === 'fourColor') {
|
if (ditherMode === 'fourColor') {
|
||||||
await writeImage(processedData, 'color');
|
await writeImage(processedData, 'color');
|
||||||
} else if (ditherMode === 'threeColor') {
|
} else if (ditherMode === 'threeColor') {
|
||||||
|
|||||||
Reference in New Issue
Block a user