Skip to content

Support for esp32 #1077

Answered by ogoffart
haikyuu asked this question in Q&A
Discussion options

You must be logged in to vote

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):

pub trait Devices {
fn screen_size(&self) -> PhysicalSize;
fn fill_region(&mut self, region: PhysicalRect, pixels: &[TargetPixel]);
fn read_touch_event(&mut self) -> Option<i_slint_core::input::

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by haikyuu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants