adafruit / Adafruit_CircuitPython_EPD

e paper driver for circuit python
MIT License
40 stars 19 forks source link

Fix #52 Distinguish stride from width for SSD1680 #53

Closed cdmuhlb closed 3 years ago

cdmuhlb commented 3 years ago

Apply fix from 8022b34 to Adafruit_SSD1680, allowing rotations of 1 and 2 to be used even when width is not a multiple of 8.

cdmuhlb commented 3 years ago

Testing

Fix verified for rotations 1 & 2 on a Raspberry Pi Zero W with Adafruit 2.13" E-ink Bonnet (graphics no longer shifted by 4 pixels). No regressions encountered with rotations 0 & 3.

ladyada commented 3 years ago

nice! thank you for the PR :)

cdmuhlb commented 3 years ago

It looks like I neglected to cede control over hand formatting. Revised fix, reformatted by Black, in work.