Closed Skilvingr closed 11 months ago
Not sure if that's the problem, but in the line by line example the third parameter should be 239u16
, because the coordinates are in the range 0..=239
.
Great! That was the problem. I thought that the upper part of the range would have been taken into account by the crate itself. Thank you very much indeed!
I thought that the upper part of the range would have been taken into account by the crate itself.
set_pixels
doesn't, because it's a low level function, which is mainly intended to be used by other frameworks. We have just recently updated the docs a few days ago to emphasize this (#66).
If you use embedded-graphics
to draw something to the display it will be automatically clipped and you won't get any artifacts from trying to draw outside the display area.
Hi, I have a 240x240 GC9A01. This is the code I'm using to test the display (I'm using the latest git version of the crate):
clear
works as expected, same for the third try (pixel after pixel), but the second try (the one with the range) cuts off the last part of the display:Does anyone know why this happens? Thanks!