I see a lot of libraries for all kinds of displays. They all include some drawing methods (pixels, lines, frames, ellipses, characters) that more or less cover the user's needs and they all include some display driver that is more or less compatible with existing other libraries.
Shouldn't it be possible to develop a flexible canvas library that taks care of the drawing, and separate display libraries that handle the I/O?
Of course, all displays are different in size, color depth, coordinate system, read access, and so on. With well-made templates, it should be possible to have drawing methods that work on a large number of displays. I'm currently working with my own code for the SSD1351, using DMA, but the drawing is done on a pretty high level and I've also come up with a set of simple widgets. Canvas code could be shared between platforms, and display drivers could be specialized for the available hardware (AVR, Cortex-M4, whatever).
Canvas and display drivers could be pre-packaged for commonly used displays to make them easier to use for beginners, and the pros could specialize them for new or less common hardware.
So, display driver writers, please join the discussion. I'm very interested in your thoughts. Such a system would also make it possible to test drawing methods on a PC with a window system, without I/O getting in the way.
Regards
Christoph
Shouldn't it be possible to develop a flexible canvas library that taks care of the drawing, and separate display libraries that handle the I/O?
Of course, all displays are different in size, color depth, coordinate system, read access, and so on. With well-made templates, it should be possible to have drawing methods that work on a large number of displays. I'm currently working with my own code for the SSD1351, using DMA, but the drawing is done on a pretty high level and I've also come up with a set of simple widgets. Canvas code could be shared between platforms, and display drivers could be specialized for the available hardware (AVR, Cortex-M4, whatever).
Canvas and display drivers could be pre-packaged for commonly used displays to make them easier to use for beginners, and the pros could specialize them for new or less common hardware.
So, display driver writers, please join the discussion. I'm very interested in your thoughts. Such a system would also make it possible to test drawing methods on a PC with a window system, without I/O getting in the way.
Regards
Christoph