ESP32-HUB75-MatrixPanel-DMA/examples/ChainedPanels/README.md

52 lines
2.5 KiB
Markdown
Raw Normal View History

2020-08-02 23:49:29 +02:00
## Chained Panels example - Chaining individual LED matrix panels to make a larger panel ##
2020-08-02 23:47:02 +02:00
This is the PatternPlasma Demo adopted for use with multiple LED Matrix Panel displays arranged in a non standard order (i.e. a grid) to make a bigger display.
2020-08-02 23:47:02 +02:00
2023-03-12 10:54:59 +01:00
![334894846_975082690567510_1362796919784291270_n](https://user-images.githubusercontent.com/89576620/224304944-94fe3483-d3cc-4aba-be0a-40b33ff901dc.jpg)
### What do we mean by 'non standard order'? ###
2020-08-02 23:47:02 +02:00
When you link / chain multiple panels together, the ESP32-HUB75-MatrixPanel-I2S-DMA library treats as one wide horizontal panel. This would be a 'standard' (default) order.
2020-08-02 23:49:29 +02:00
Non-standard order is essentially the creation of a non-horizontal-only display that you can draw to in the same way you would any other display, with VirtualDisplay library looking after the pixel mapping to the physical chained panels.
For example: You bought four (4) 64x32px panels, and wanted to use them to create a 128x64pixel display. You would use the VirtualMatrixPanel class.
2023-03-12 10:15:25 +01:00
[Refer to this document](https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA/blob/master/doc/VirtualMatrixPanel.pdf) for an explanation and refer to this example on how to use.
2020-08-02 23:47:02 +02:00
2020-08-03 13:40:19 +02:00
2020-08-02 23:47:02 +02:00
### Steps to Use ###
2023-03-12 10:15:25 +01:00
1. [Refer to this document](https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA/blob/master/doc/VirtualMatrixPanel.pdf) for an explanation and refer to this example on how to use.
2. In your Arduino sketch, configure these defines accordingly:
```
#define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module.
2020-08-02 23:49:29 +02:00
#define NUM_ROWS 2 // Number of rows of chained INDIVIDUAL PANELS
#define NUM_COLS 2 // Number of INDIVIDUAL PANELS per ROW
#define PANEL_CHAIN NUM_ROWS*NUM_COLS // total number of panels chained one to another
#define VIRTUAL_MATRIX_CHAIN_TYPE <INSERT CHAINING TYPE HERE - Refer to documentation or example>
```
2023-03-12 10:56:48 +01:00
VIRTUAL_MATRIX_CHAIN_TYPE's:
![image](https://user-images.githubusercontent.com/12006953/224537356-e3c8e87b-0bc0-4185-8f5d-d2d3b328d176.png)
2020-08-02 23:47:02 +02:00
3. In your Arduino sketch, use the 'VirtualMatrixPanel' class instance (virtualDisp) to draw to the display (i.e. drawPixel), instead of the underling MatrixPanel_I2S_DMA class instance (dma_display).
2020-08-02 23:47:02 +02:00
2020-08-09 20:22:38 +02:00
#### Thanks to ####
* Brian Lough for the Virtual to Real pixel co-ordinate code.
2020-08-02 23:49:29 +02:00
YouTube: https://www.youtube.com/brianlough
2020-08-02 23:50:55 +02:00
2020-08-02 23:49:29 +02:00
Tindie: https://www.tindie.com/stores/brianlough/
2020-08-02 23:50:55 +02:00
2020-08-02 23:49:29 +02:00
Twitter: https://twitter.com/witnessmenow
2020-08-09 20:22:38 +02:00
* Galaxy-Man for the donation of hardware for testing.