Integrate embeddedgraphics #2

Merged
rafaelcaricio merged 4 commits from integrate_embeddedgraphics into master 2020-04-19 13:40:04 +00:00
rafaelcaricio commented 2020-04-19 13:30:54 +00:00 (Migrated from github.com)
No description provided.
rafaelcaricio (Migrated from github.com) reviewed 2020-04-19 13:31:49 +00:00
@ -3,0 +10,4 @@
pub struct DisplayDriver<'a, T>
where
T: DrawTarget<Rgb888>,
rafaelcaricio (Migrated from github.com) commented 2020-04-19 13:31:49 +00:00

Would be nice to have this type more generic. Not all embedded systems will support that.

Would be nice to have this type more generic. Not all embedded systems will support that.
rafaelcaricio (Migrated from github.com) reviewed 2020-04-19 13:32:35 +00:00
@ -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);
rafaelcaricio (Migrated from github.com) commented 2020-04-19 13:32:35 +00:00

I just could not figure out to make it more generic because of this line. We need a concrete type to instantiate the color.

I just could not figure out to make it more generic because of this line. We need a concrete type to instantiate the color.
Sign in to join this conversation.
No description provided.