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