Integrate embeddedgraphics #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rafaelcaricio/lvgl-rs#2
Loading…
Reference in a new issue
No description provided.
Delete branch "integrate_embeddedgraphics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -3,0 +10,4 @@
pub struct DisplayDriver<'a, T>
where
T: DrawTarget<Rgb888>,
Would be nice to have this type more generic. Not all embedded systems will support that.
@ -3,0 +86,4 @@
// Convert C color representation to high-level Rust
let raw_color = *color_p.add(i);
i = i + 1;
let color = Rgb888::new(raw_color.ch.red, raw_color.ch.green, raw_color.ch.blue);
I just could not figure out to make it more generic because of this line. We need a concrete type to instantiate the color.