The height value was wrong in one location for SSD1608.
In the Python library, there are two sets of dimensions for SSD1608, which is confusing. but it seems like 250x136 works better in our code than 250x122.
Also I moved the display info fromInky.HAL.PhatSSD1608 toInky.Display struct. I think it makes SSD1608 code slightly more consistent with the other code.
Notes
The Python library uses PIL and numpy to offset the image here but I do not know what is the equivalent in Elixir.
We might need some more fine-tuning, but as of this PR the image is at least centered and there is no extra space at the top. I'd say this is good enough if it is not perfect.
The height value was wrong in one location for SSD1608.
In the Python library, there are two sets of dimensions for SSD1608, which is confusing. but it seems like
250x136
works better in our code than250x122
.Also I moved the display info from
Inky.HAL.PhatSSD1608
toInky.Display
struct. I think it makes SSD1608 code slightly more consistent with the other code.Notes
PIL
andnumpy
to offset the image here but I do not know what is the equivalent in Elixir.