-
Notifications
You must be signed in to change notification settings - Fork 11
WIP: feat: Partial update #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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
|
Partial refreshing won't fix the blurred pixels issue: Hopefully #59 will fix this. |
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: