summaryrefslogtreecommitdiff
path: root/shared-module/displayio
AgeCommit message (Collapse)Author
2020-06-03Fix up end of file and trailing whitespace.Diego Elio Pettenò
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-05-10vectorio: clean up after group removalwarriorofwire
VectorShape tells the Group to redraw whatever it left behind when it is removed now.
2020-05-10vectorio: respect display transpose and mirror.warriorofwire
VectorShape now just uses the Group's and Display's absolute transforms.
2020-05-09vectorio: switch per-shape transform to Displaywarriorofwire
Rather than maintain a transform per-shape, we'll just use whatever settings are on the Display. Currently only transpose is done.
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-05-05Merge pull request #2842 from hierophect/stm32-h7-displayiohierophect
STM32: Add displayio to F7/H7
2020-05-01Fix flag typoLucian Copeland
2020-04-30Make PulseIO optional within DisplayIOLucian Copeland
2020-04-20Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
This isn't perfect and needs a bit more testing.
2020-04-17RGBMatrix: finish renaming from ProtomatterJeff Epler
This gets all the purely internal references. Some uses of protomatter/Protomatter/PROTOMATTER remain, as they are references to symbols in the Protomatter C library itself.
2020-04-17Rename Protomatter -> RGBMatrixJeff Epler
This is a quick rename, it changes the user-facing names but not the internal names of things.
2020-04-17Rename _protomatter -> protomatterJeff Epler
I originally believed that there would be a wrapper library around it, like with _pixelbuf; but this proves not to be the case, as there's too little for the library to do.
2020-04-14Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-14displayio: swap colors in palettes tooJeff Epler
.. change the in-rom palette to be in RGB565 order
2020-04-14protomatter: release the protomatter object during release_displays()Jeff Epler
2020-04-14fix build for non-displayio & non-protomatter targetsJeff Epler
2020-04-14protomatter: more memory allocation fixesJeff Epler
- bump supervisor alloc count by 4 (we actually use 5) - move reconstruct to after gc heap is reset - destroy protomatter object entirely if not used by a FramebufferDisplay - ensure previous supervisor allocations are released - zero out pointers so GC can collect them
2020-04-14Add Protomatter and FramebufferDisplayJeff Epler
2020-04-14displayio: implement, use allocate_new_display_bus_or_raiseJeff Epler
2020-04-14displayio: implement, use allocate_display_or_raiseJeff Epler
2020-04-13make packed word and copy it incaternuson
2020-04-09add docstring, clean upcaternuson
2020-04-09initial working fillcaternuson
2020-04-08Save backlight_on_high correctly.Scott Shawcroft
Fixes #2750
2020-03-31Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-03-28Merge pull request #2730 from tannewt/fix_fourwire_phase_polarityJeff Epler
Add polarity and phase to FourWire.
2020-03-25adding a backlight polarity flag to Displaysiddacious
2020-03-25Add polarity and phase to FourWire.Scott Shawcroft
It was fixed as 0/0 even though it used to get it from the current SPI state. This makes it more explicit with kwargs. Thanks to magpie_lark and kmatocha on the Adafruit Support forum for finding the issue: https://forums.adafruit.com/viewtopic.php?f=60&t=162515
2020-03-13First try at lowering the power consumptionScott Shawcroft
2020-01-28Implement requested changesLucian Copeland
2020-01-24Simplify the flash-display conflict fixLucian Copeland
2020-01-24Fix flash-display conflict errorLucian Copeland
2019-12-16displayio: make 'rotation' property settableJeff Epler
2019-12-05Define polarity and phase in FourwireHierophect
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-11-08Fixed I2CDisplay reset issueMelissa LeBlanc-Williams
2019-09-09Merge pull request #2101 from matthewnewberg/display_io_ditherScott Shawcroft
Add random dithering to ColorConverter
2019-09-05Move dither parameter to ColorConverter constructor and parameterMatthew Newberg
2019-09-04Removed unused return value in displayio_colorconverter_convertMatthew Newberg
2019-09-04Bitpack bools in TileGrid and GroupScott Shawcroft
2019-09-03Add .hidden to TileGrid and GroupScott Shawcroft
This allows for one to preserve ordering within a Group while hiding something temporarily. Fixes #1688
2019-09-03Fix I2CDisplay bus_free to not grab lockScott Shawcroft
Fixes #2098
2019-09-03Capture rotationDave Astels
2019-08-31Add random dithering to ColorConverterMatthew Newberg
2019-08-26Minor renamesScott Shawcroft
2019-08-23Rework based on Dan's reviewScott Shawcroft
2019-08-22More cleanupScott Shawcroft