summaryrefslogtreecommitdiff
path: root/shared-module/displayio
AgeCommit message (Collapse)Author
2019-06-13Minor tweaks based on Dan's feedbackScott Shawcroft
2019-06-12Refactor deinit check to reduce code size.Scott Shawcroft
2019-06-12Add partial display update support.Scott Shawcroft
Different operations to the display tree have different costs. Be aware of these costs when optimizing your code. * Changing tiles indices in a TileGrid will update an area covering them all. * Changing a palette will refresh every object that references it. * Moving a TileGrid will update both where it was and where it moved to. * Adding something to a Group will refresh each individual area it covers. * Removing things from a Group will refresh one area that covers all previous locations. (Not separate areas like add.) * Setting a new top level Group will refresh the entire display. Only TileGrid moves are optimized for overlap. All other overlaps cause sending of duplicate pixels. This also adds flip_x, flip_y and transpose_xy to TileGrid. They change the direction of the pixels but not the location. Fixes #1169. Fixes #1705. Fixes #1923.
2019-06-11Merge latest 4.0.x fixes into masterDan Halbert
2019-06-06Include display objects in gc.Dan Halbert
2019-05-31Fix off-by-one errorScott Shawcroft
It caused the bottom and right edges to be one pixel short.
2019-05-22Make point 2 in areas exclusive and simplify full_coverage.Scott Shawcroft
2019-05-21Rework the pixel computation to use areasScott Shawcroft
This changes the displayio pixel computation from per-pixel to per-area. This is precursor work to updating portions of the screen (#1169). It should provide mild speedups because bounds checks are done once per area rather than once per pixel. Filling by area also allows TileGrid to maintain a row-associative fill pattern even when the display's refresh is orthogonal to it.
2019-05-15Remove old commentScott Shawcroft
2019-05-15Add index and remove to Group.Scott Shawcroft
2019-05-09Handle -scale to 0 correctly in GroupScott Shawcroft
Fixes #1839
2019-04-18Merge pull request #1815 from dhalbert/stop-flickerScott Shawcroft
Turn off auto_brightness if brightness is set
2019-04-18add Display.__init__() args for brightness and auto_brightnessDan Halbert
2019-04-17Fix off by one error in OnDiskBitmapScott Shawcroft
It resulted in the first row of pixels being pulled for out of bounds. Fixes #1801
2019-04-09Fix boards with no shared busses.Scott Shawcroft
2019-04-08Merge remote-tracking branch 'adafruit/master' into fix_cpx_displayScott Shawcroft
2019-04-08Reorganize board busses into shared-bindings and shared-module.Scott Shawcroft
2019-04-06Stop hard-coding SPI frequency in FourWireRadomir Dopieralski
Instead remember and use the frequency, polarity and phase that was set when the bus was first created.
2019-04-05Fix crash when getting board.SPI outside the VMScott Shawcroft
If one of the default pins was already in use it would crash. The internal API has been refined to allow us to get the value without causing an init of the singleton. Fixes #1753
2019-04-05Added comment regarding parameter loopMelissa LeBlanc-Williams
2019-04-04Added option to easily treat SPI parameter data as commandsMelissa LeBlanc-Williams
2019-04-04Support multi-byte values with BitmapScott Shawcroft
It also corrects the behavior of single byte values. Fixes #1744
2019-04-03change direction of shift rightcaternuson
2019-04-01Removed unnecessary bit-ANDingMelissa LeBlanc-Williams
2019-03-31Improved readability of Single Byte Bounds codeMelissa LeBlanc-Williams
2019-03-27Merge branch 'master' of https://github.com/adafruit/circuitpython into ↵Melissa LeBlanc-Williams
ssd1351-fix
2019-03-27Simplified cs toggling into fourwire onlyMelissa LeBlanc-Williams
2019-03-27Simplified into fourwire onlyMelissa LeBlanc-Williams
2019-03-27TileGrid: pixel_shader is not always a paletteDan Halbert
2019-03-26Removed parameter so CS is always toggledMelissa LeBlanc-Williams
2019-03-26Removed parameter so CS is always toggledMelissa LeBlanc-Williams
2019-03-26Added small delay inside toggle for edge casesMelissa LeBlanc-Williams
2019-03-26Added small delay inside toggle for edge casesMelissa LeBlanc-Williams
2019-03-25Fixed wrong operatorMelissa LeBlanc-Williams
2019-03-24Added Single Byte Boundaries option for certain displaysMelissa LeBlanc-Williams
2019-03-23Moving Toggle to before command fixes driver issueMelissa LeBlanc-Williams
2019-03-23Added option to toggle cs in displayio init sequenceMelissa LeBlanc-Williams
2019-03-20Merge pull request #1670 from tannewt/fontioDan Halbert
Move Glyph and BuiltinFont into fontio
2019-03-20Merge pull request #1676 from pewpew-game/bug1671Scott Shawcroft
Make displayio.Palette support more than 255 colors
2019-03-20Make displayio.Palette support more than 255 colorsRadomir Dopieralski
Fix #1671
2019-03-19Move Glyph and BuiltinFont into fontioScott Shawcroft
It was confusing in displayio. Fixes #1662
2019-03-16after code.py runs, flush filesystem before resetting heapDan Halbert
2019-03-12Standardize TileGrid to x and y properties over positionScott Shawcroft
This brings it inline with Group. Also fixes #1613 This also includes a number of fixes for where a method is called through a subclass. We now correctly get the native object. Fixes #1567 Lastly, this adds subscript support to TileGrid for changing tile indices. Similar to Bitmap, it accepts ints or 2-tuples.
2019-03-12Accept x and y kwargs into Group for initial position.Scott Shawcroft
2019-03-07Rework background display task to allow reads from SPI SD card during ↵Dan Halbert
display. Clarify code. Handle multiple displays better.
2019-03-06check display-bus transaction status and act accordinglyDan Halbert
2019-03-06Merge pull request #1601 from penguindustin/masterDan Halbert
added height and width attributes for displayio
2019-03-05changed from mp_int_t to uint16_tDustin Mendoza
2019-03-04Merge pull request #1604 from dhalbert/display_wait_for_frame-check-interruptsDan Halbert
Don't wait for display frame if interrupt pending
2019-03-01fixed typoBryan Siepert