summaryrefslogtreecommitdiff
path: root/shared-module/displayio/EPaperDisplay.c
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2020-11-18EPaperDisplay: add rotation propertyJeff Epler
untested, because I don't want to mess my magtag demo up :) but it builds
2020-11-13Add .busy property to EPaperDisplayScott Shawcroft
2020-11-13Add board.DISPLAY to MagTag. Fix luma computationScott Shawcroft
* Initialize the EPaper display on the MagTag at start. * Tweak the display send to take a const buffer. * Correct Luma math * Multiply the blue component, not add. * Add all of the components together before dividing. This reduces the impact of truncated division.
2020-10-26Add grayscale EInk supportScott Shawcroft
2020-10-11displayio, framebufferio: Remove spurious call to supervisor_start_terminalJeff Epler
A call to supervisor_start_terminal remained in common_hal_displayio_display_construct and was copied to other display _construct functions, even though it was also being done in displayio_display_core_construct when that was factored out. Originally, this was harmless, except it created an extra allocation. When investigating #3482, I found that this bug became harmful, especially for displays that were created in Python code, because it caused a supervisor allocation to leak. I believe that it is safe to merge #3482 after this PR is merged.
2020-09-30Ran pre-commit locallyMark Roberts
2020-09-24Mostly-working-version with commentsMark Roberts
2020-09-21Changes to compile cleanlyMark Roberts
2020-07-15displayio, framebufferio: Enable supervisor tick when a display is auto-refreshJeff Epler
This is a step towards restoring the efficiency of the background tasks
2020-04-14Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-14Add Protomatter and FramebufferDisplayJeff Epler
2020-03-13First try at lowering the power consumptionScott Shawcroft
2019-11-29Merge remote-tracking branch 'origin/master' into tick-refactorJeff Epler
2019-11-26Fix ePaper so it works after a GC.Scott Shawcroft
We weren't correctly collecting the start and stop sequences. As a result, the GC would free the space and allocate other info there. Thanks to JacobT on Discord for the bug report!
2019-11-18Supervisor: move most of systick to the supervisorJeff Epler
This code is shared by most parts, except where not all the #ifdefs inside the tick function were present in all ports. This mostly would have broken gamepad tick support on non-samd ports. The "ms32" and "ms64" variants of the tick functions are introduced because there is no 64-bit atomic read. Disabling interrupts avoids a low probability bug where milliseconds could be off by ~49.5 days once every ~49.5 days (2^32 ms). Avoiding disabling interrupts when only the low 32 bits are needed is a minor optimization. Testing performed: on metro m4 express, USB still works and time.monotonic_ns() still counts up
2019-11-15Add never_reset and reset to pin common hal, adjust filesHierophect
2019-08-26Minor renamesScott Shawcroft
2019-08-23Rework based on Dan's reviewScott Shawcroft
2019-08-22Regular display fixes including refresh tweaksScott Shawcroft
2019-08-22Add refresh_time to use if busy_pin is not givenScott Shawcroft
2019-08-22Refresh ePaper displays once code.py is done runningScott Shawcroft
2019-08-22Rework refresh API and factor common display stuff outScott Shawcroft
NOT TESTED! Just compiles Fixes #1691
2019-08-22Begin refresh rework.Scott Shawcroft
2019-08-22EPaper displays work mostly.Scott Shawcroft