Supporting multiple displays #1634
-
It may not be the most common thing, but there are certain situations where driving multiple displays is desirable. One example is the nook e-reader that has e-paper and an LCD touch screen below it to navigate. I've written some code for a proposed driver framework that I based off of your code, but it uses templates and constexpr instead of macros. It generates the same machine code, but type safe with less namespace pollution, and lets you run multiple displays. It also decouples the bus code from the driver code. Anyway, in case you're interested, here's a brief article I wrote on it along with a bit of code with support for several displays, I2C, SPI, and 8-bit parallel. It also may be able to use pins higher than 31 for parallel but I have not tested that yet. https://www.codeproject.com/Articles/5324976/High-Performance-Decoupled-Buses-for-IoT-Displays |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
It is possible to use two displays of the same type and pixel width/height when the chip select is managed by the sketch. This approach is used in the animated eyes example, but it is a bit of a cludge as things like cursor position and view port are not unique to each display. Ideally all the hardware driver and display specific stuff needs separating but, as you say, mixed multi-display setups are relatively rare . I will move this to the discussions section and have a look at you work. |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
That's what I was thinking. Thanks for the feedback ! |
Beta Was this translation helpful? Give feedback.
-
I prefer the way of ucglib that past config info by construct function para : |
Beta Was this translation helpful? Give feedback.
It is possible to use two displays of the same type and pixel width/height when the chip select is managed by the sketch. This approach is used in the animated eyes example, but it is a bit of a cludge as things like cursor position and view port are not unique to each display.
Ideally all the hardware driver and display specific stuff needs separating but, as you say, mixed multi-display setups are relatively rare .
I will move this to the discussions section and have a look at you work.