Draft
Conversation
Contributor
Reviewer's GuideThis PR adds support for partial updates on the E-Paper display by introducing new private methods to configure and control a partial window (_setPartialWindow, _partialIn, _partialOut) with input validation and bit-level command packing, and integrates these calls into the existing frame transmission and refresh sequence. Sequence diagram for partial update integration in E-Paper refreshsequenceDiagram
participant App
participant Protocol
participant EPDController
participant FlutterNfcKit
App->>Protocol: refresh(id, image, epd)
Protocol->>Protocol: _setPartialWindow(id, 0, epd.width/8-1, 0, epd.height-1, true)
Protocol->>EPDController: epd.extractEpaperColorFrames(image)
loop for each color frame
Protocol->>EPDController: transmissionLines.current
Protocol->>Protocol: writeFrame(id, color, transmissionLine)
end
Protocol->>Protocol: _setPartialWindow(id, 0, 15, 0, 200, true)
Protocol->>Protocol: _partialIn(id)
Protocol->>Protocol: _writeMsg([fw.epdCmd, epd.controller.refresh])
Protocol->>FlutterNfcKit: finish()
Class diagram for Protocol class with partial update methodsclassDiagram
class Protocol {
+Future<Uint8List> enableEnergyHarvesting(Uint8List tagId)
+Future<void> _sleep()
+Future refresh(Uint8List id, Image image, EPD epd)
-Future<Uint8List> _setPartialWindow(Uint8List tagId, int xsbank, int xebank, int ys, int ye, bool pt_scan)
-void _partialIn(Uint8List tagId)
-void _partialOut(Uint8List tagId)
}
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Member
Author
|
Partial refreshing won't fix the blurred pixels issue: Hopefully #59 will fix this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Resolves #58
Summary by Sourcery
Implement partial update capability by adding protocol commands for setting a partial window and toggling partial mode, and integrate these into the display update sequence
New Features:
Enhancements: