Closed PaintYourDragon closed 3 years ago
hihi this is ok, maybe easier if you put the mode in the parent object so it doenst have to be re-pasted into each new board?
Re-pasting seems the simplest thing for now…
But, on the plus side, such a change…
yah good point. ok mergin!
Thx! I’ll do the version bump in the main branch now.
Please review carefully before merging, in case this is Not The Right Way To Go About Things.
All of the ThinkInk classes (in panels directory) are updated to preserve the “ink mode” that was passed to their begin() function, with a corresponding function to query this later. This was done primarily for ImageReader (but maybe others can benefit), so it can do the Right Thing depending on the display configuration…but without having to state this in two different places in a sketch (once when calling the display’s begin() func, another when loading an image, which is just A Recipe For Disaster that these two would get out of sync…now instead the setting from the former can be queried to pass to the latter…it’s a roundabout extra step, but is at least always consistent).
No changes have been made to the core Adafruit_EPD class itself, nor the drivers, only the ThinkInk classes. Some minor table formatting for consistency because you know I’m Just That Way.
Version number in properties file is NOT bumped yet, until this is PR is reviewed.