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

Can't read battery level of Inkplate6COLOR

Open besi opened this issue 2 years ago • 1 comments

I'm running the following code in order to read the battery level:

from inkplate6COLOR import Inkplate
Inkplate.readBattery()

I will get the following error:

Inkplate.readBattery()
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/lib/inkplate6COLOR.py", line 473, in readBattery
AttributeError: type object 'Inkplate' has no attribute 'VBAT_EN'

besi avatar Jan 22 '24 23:01 besi

Apparently I have the version 2.2.0 from around Januar 2023

Inkplate6_COLOR_3D v3

besi avatar Jan 23 '24 16:01 besi

Hi @besi

really sorry for such a late reply, as we don't prioritize this repository. I've just made a push to dev where this issue is fixed on inkplate6COLOR, check out the example as well: https://github.com/SolderedElectronics/Inkplate-micropython/blob/dev/Examples/Inkplate6COLOR/batteryRead.py

Hopefully that works.

rsoric avatar May 28 '24 22:05 rsoric