Skip to content

Commit 5c3639c

Browse files
authored
Add comment about DMA
1 parent 5fefaaa commit 5c3639c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ fn main() -> ! {
144144
Size::new(range.len() as _, 1),
145145
);
146146
render_fn(&mut self.1[range.clone()]);
147+
// NOTE! this is not an efficient way to send pixel to the screen, but it is kept simple on this template.
148+
// It would be much faster to use the DMA to send pixel in parallel.
149+
// See the example in https://github.com/slint-ui/slint/blob/master/examples/mcu-board-support/pico_st7789.rs
147150
self.0
148151
.fill_contiguous(
149152
&rect,

0 commit comments

Comments
 (0)