You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing, the InkyMockImpression class currently only supports 600 x 448 (which I think is 5.7 inch). You can override the class attributes WIDTH and HEIGHT to change this, but this is less than ideal.
Ideally the resolution could be passed in to the constructor as it is in the actual class being mocked, so you could do something like:
display=InkyMockImpression((800, 480))
to mock the 7.3 inch Inky Impression.
The text was updated successfully, but these errors were encountered:
This permits simpler setting of the size of the Inky Impression being mocked.
For example, this allows:
``` python
display = InkyMockImpression((800, 480))
```
which will ensure that the buffer size gets set up correctly.
Fixespimoroni#168.
When testing, the
InkyMockImpression
class currently only supports 600 x 448 (which I think is 5.7 inch). You can override the class attributesWIDTH
andHEIGHT
to change this, but this is less than ideal.Ideally the resolution could be passed in to the constructor as it is in the actual class being mocked, so you could do something like:
to mock the 7.3 inch Inky Impression.
The text was updated successfully, but these errors were encountered: