summaryrefslogtreecommitdiff
path: root/shared-bindings/rgbmatrix
AgeCommit message (Collapse)Author
2021-04-02can't xref this right nowJeff Epler
2021-04-02stubs: ulab.array -> ulab.ndarrayJeff Epler
2021-03-27RGBMatrix: fix memoryview(matrix)Jeff Epler
Typical test: ```python import displayio import rgbmatrix import board displayio.release_displays() matrix = rgbmatrix.RGBMatrix( width=128, bit_depth=4, rgb_pins=[board.GP0, board.GP1, board.GP2, board.GP3, board.GP4, board.GP5], addr_pins=[board.GP6, board.GP7, board.GP8, board.GP9], clock_pin=board.GP10, latch_pin=board.GP11, output_enable_pin=board.GP12) mem = memoryview(matrix) mem[0] = 65535 # OK mem[0] = 65536 # errors (out of range) ```
2021-03-15run code formatting scriptmicroDev
2021-01-28RGBMatrix: change default to serpentine=TrueJeff Epler
The "serpentine" display order leads to much better wiring (shorter ribbon cables) and is preferred. Change the default accordingly.
2021-01-26Disallow tile=0Jeff Epler
2021-01-26rgbmatrix: Eliminate some duplicated height-calculating codeJeff Epler
This was hard to write, so let's have it written in 2 places instead of 4.
2021-01-26RGBMatrix: Additional tile tweaksJeff Epler
* Introduce explicit serpentine: bool argument instead of using negative numbers (thanks, ghost of @tannewt sitting on one shoulder) * Fix several calculations of height Testing performed (matrixportal): * set up a serpentine 64x64 virtual display with 2 64x32 tiles * tried all 4 rotations * looked at output of REPL
2021-01-26protmatter: Update to version that supports tilingJeff Epler
2020-11-09RGBMatrix: Detect invalid bit_depth selectionJeff Epler
Closes: #3650
2020-10-10rgbmatrix: update protomatter to 1.0.5 tagJeff Epler
this is compile-tested on stm32f405 feather matrixportal nrf52840 feather but not actually tested-tested.
2020-10-01Update shared-bindings/rgbmatrix/RGBMatrix.cJeff Epler
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2020-09-29rgbmatrix: Check that the number of rgb pins is supported.Jeff Epler
Having zero RGB pins may not have been caught, nor having a non-multiple-of-6 value. Generally, users will only have 6 RGB pins unless they are driving multiple matrices in parallel. No existing breakouts exist to do this, and there are probably not any efficient pinouts to be had anyway.
2020-09-29rgbmatrix: validate width= constructor parameterJeff Epler
In #3482, @cwalther noted that, hypothetically, a zero byte allocation could be made in the RGBMatrix constructor. Ensure that width is positive. Height was already checked against the number of RGB pins if it was specified, so zero is ruled out there as well.
2020-09-02rgbmatrix: Move struct definition to shared-module, rename 'core' memberJeff Epler
2020-08-12framebufferio: add dirty row trackingJeff Epler
2020-08-07Modify some Python stubsTaku Fukada
2020-07-27Fix several type hintsTaku Fukada
2020-07-24Add and correct some type hintsTaku Fukada
2020-07-03Made every init return Nonedherrada
2020-07-03Made most of the requested changesdherrada
2020-07-03Added type hints to rgbmatrixdherrada
2020-07-02Removed all 'self, )'dherrada
2020-06-26shared-bindings: Factor out validate_list_is_free_pinsJeff Epler
This will ultimately be used by SDIO, where a variable length list of data lines is called for.
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-05-11Did rgbmatrix, rotaryio, and RTCdherrada
2020-04-19RGBMatrix: nonessential change to kick ActionsJeff Epler
2020-04-17RGBMatrix: this comment no longer describes the codeJeff Epler
... allocate_display_bus_or_raise() uses fixed storage, not heap storage.
2020-04-17RGBMatrix: documentation got behind the codeJeff Epler
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-17RGBMatrix: remove unneeded propertiesJeff Epler
2020-04-17framebufferio: get width, etc., from protocol, not object propertyJeff Epler
2020-04-17Rename Protomatter -> RGBMatrixJeff Epler
This is a quick rename, it changes the user-facing names but not the internal names of things.