summaryrefslogtreecommitdiff
path: root/shared-module/displayio/display_core.c
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2020-10-26Add grayscale EInk supportScott Shawcroft
2020-10-15displayio: further ensure just one start_terminal callJeff Epler
@cwalther determined that for boards with 2 displays (monster m4sk), start_terminal would be called for each one, leaking supervisor heap entries. Determine, by comparing addresses, whether the display being acted on is the first display (number zero) and do (or do not) call start_terminal. stop_terminal can safely be called multiple times, so there's no need to guard against calling it more than once. Slight behavioral change: The terminal size would follow the displays[0] size, not the displays[1] size
2020-10-02Merge pull request #3507 from jepler/issue3506-matrixportal-crashLimor "Ladyada" Fried
displayio: Fix matrixportal crash
2020-10-02displayio: Fix matrixportal crashJeff Epler
An RGBMatrix has no bus and no bus_free method. It is always possible to refresh the display. This was not a problem before, but the fix I suggested (#3449) added a call to core_bus_free when a FramebufferDisplay was being refreshed. This was not caught during testing. This is a band-aid fix and it brings to light a second problem in which a SharpDisplay + FrameBuffer will not have a 'bus' object, and yet does operate using a shared SPI bus. This kind of display will need a "bus-free" like function to be added, or it can have problems like #3309.
2020-10-01Merge pull request #3449 from FoamyGuy/sdcard_odb_fixScott Shawcroft
Sdcard odb fix
2020-09-30Ran pre-commit locallyMark Roberts
2020-09-25Requested changes take 1Mark Roberts
2020-09-25Fixed page set mask to be four bits!Mark Roberts
2020-09-24Mostly-working-version with commentsMark Roberts
2020-09-22Removed redundant send of page settingMark Roberts
2020-09-21Changes to compile cleanlyMark Roberts
2020-09-21Quirk coded up for ...set_region_to_updateMark Roberts
2020-09-11fixes showing OnDiskBitmap with adafruit_sdcardFoamyGuy
2020-05-09Add vectorio: for drawing shapeswarriorofwire
vectorio builds on m4 express feather Concrete shapes are composed into a VectorShape which is put into a displayio Group for display. VectorShape provides transpose and x/y positioning for shape implementations. Included Shapes: * Circle - A radius; Circle is positioned at its axis in the VectorShape. - You can freely modify the radius to grow and shrink the circle in-place. * Polygon - An ordered list of points. - Beteween each successive point an edge is inferred. A final edge closing the shape is inferred between the last point and the first point. - You can modify the points in a Polygon. The points' coordinate system is relative to (0, 0) so if you'd like a top-center justified 10x20 rectangle you can do points [(-5, 0), (5, 0), (5, 20), (0, 20)] and your VectorShape x and y properties will position the rectangle relative to its top center point * Rectangle A width and a height.
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-12-16displayio: make 'rotation' property settableJeff Epler
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-09-09Merge pull request #2101 from matthewnewberg/display_io_ditherScott Shawcroft
Add random dithering to ColorConverter
2019-09-03Capture rotationDave Astels
2019-08-31Add random dithering to ColorConverterMatthew Newberg
2019-08-23Rework based on Dan's reviewScott Shawcroft
2019-08-22Regular display fixes including refresh tweaksScott 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