-
I am planning to build an ebook reader and so I ordered a LILYGO® E-ink Display How hard is it to add support for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It all depends on the Rust support for it. The MCU port is still work in progress, but basically, to support a custom board, you have to implement a trait providing capabilities such as sending pixels to the screen and listening to the touchscreen. This is the current trait (but it may change in the future): slint/internal/backends/mcu/lib.rs Lines 38 to 48 in eb9092b So for example, this file implements the support for the RaspberryPi Pico https://github.com/slint-ui/slint/blob/eb9092ba15f212dc35f92b2bceae07b851cef6d2/internal/backends/mcu/pico_st7789.rs (We will also expose that from other programming languages when we support that.) |
Beta Was this translation helpful? Give feedback.
It all depends on the Rust support for it.
From my understanding after a quick search, rust should be supported without much problem on such devices.
The MCU port is still work in progress, but basically, to support a custom board, you have to implement a trait providing capabilities such as sending pixels to the screen and listening to the touchscreen.
This is the current trait (but it may change in the future):
slint/internal/backends/mcu/lib.rs
Lines 38 to 48 in eb9092b