Closed tippfehlr closed 9 months ago
I assume you use an 16-bit avr architecture? Disabling default features removes the graphics parts, but I think that can be fixed by dividing the width by 8 first. But I need to check if the width is always dividable by eight.
Sorry, I gave no context. The target is the Atmega 328P (Arduino Micro) and the Buffer does not fit in memory in the first place.
But why is an extra buffer in RAM used? I wrote an implementation where I implement the DrawTarget
trait so that the image is written directly into the display's buffer. (That could be slower of course, I haven't tested it yet)
Its to change partial things of the full image, e.g. if you have a clock in one corner or similar things but the display doesn't allow partial updates. But yeah for the same reason as yours its an optional feature, although enabled by default
Oh, do you mean that some code would change this pub const WIDTH: u32 = 800;
?
I am not expert enough in Rust and macros, so I just assumed that this literal would never change.
the dimensions are defined once for each display size (but don’t change).
Disabling default features removes the error.