Inkplate-micropython icon indicating copy to clipboard operation
Inkplate-micropython copied to clipboard

Fix deep sleep on Inkplate 6 Color

Open zachstence opened this issue 2 years ago • 0 comments

Expected behavior: Inkplate.setPanelDeepSleepState should work properly

Actual behavior: The following error occurs:

AttributeError: 'int' object has no attribute 'value'

Problem: EPAPER_RST_PIN is an integer constant. The function should be using self.EPAPER_RST_PIN which is a pin. The same applies for other variables used in the function.

Solution: Correctly use the class member variables with self.xxx

zachstence avatar Feb 16 '23 04:02 zachstence