Skip to content

Conversation

@giummy
Copy link

@giummy giummy commented Jun 27, 2018

  • Precompute of indices of the buffer array to speed up drawings
  • Faster draw single pixel (fillMatrixBuffer)
  • Implementation of virtual AdaFruit GFX methods:
    --- drawFastHLine
    --- drawFastVLine
    --- fillRect
    The source has been indented and formatted using tabs, merge could not be handled by Git.

- Precompute of indices of the buffer array to speed up drawings
- Faster draw single pixel (fillMatrixBuffer)
- Implementation of virtual AdaFruit GFX methods:
--- drawFastHLine
--- drawFastVLine
--- fillRect
@2dom
Copy link
Owner

2dom commented Jun 27, 2018 via email

@giummy
Copy link
Author

giummy commented Jun 27, 2018

Oops, my 8266 is working at 40MHz with a 64x32 led matrix. Can be set at 20MHz, the optimization is at buffer matrix level, not at SPI.
The main idea is to compute the offset of the first byte of each line (actually the last one, since it is reversed to be streamed to SPI). This works correctly for 32x32 and 64x32 matrices, I didn't test for panel_width>1, but the original slower method is still there and can be used instead. At least since I would grab more than one panel... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants