lanrat / homeplate

Home Assistant E-Ink Dashboard on the Inkplate 10
Apache License 2.0
168 stars 24 forks source link

feat: InkPlate lib update to latest version #22

Closed mmornati closed 1 year ago

mmornati commented 1 year ago

Why?

Building the project it is (strangely) produces an error related to the new InkPlate lib.

Removing unused dependencies...
Library Manager: Installing git+https://github.com/e-radionicacom/Inkplate-Arduino-library @ 5.7.1
git version 2.37.1 (Apple Git-137.1)
Cloning into '/Users/mmornati/.platformio/.cache/tmp/pkg-installing-y2dxkhzi'...
remote: Enumerating objects: 1020, done.
remote: Counting objects: 100% (1020/1020), done.
remote: Compressing objects: 100% (757/757), done.
remote: Total 1020 (delta 340), reused 747 (delta 247), pack-reused 0
Receiving objects: 100% (1020/1020), 15.35 MiB | 6.27 MiB/s, done.
Resolving deltas: 100% (340/340), done.
Error: Package version 6.0.0+sha.8c2017d doesn't satisfy requirements 5.7.1 based on PackageMetaData <type=library name=InkplateLibrary version=6.0.0+sha.8c2017d spec={'owner': None, 'id': None, 'name': 'Inkplate-Arduino-library', 'requirements': '5.7.1', 'uri': 'git+https://github.com/e-radionicacom/Inkplate-Arduino-library'}

It seems it is able to download only the latest version, and the build is stopped because it is not the one we are waiting for.

What?

Move the InkPlate Arduino Library to the 6.0.0 version.

After this update, there are some compatibility errors:

image

The PR is replacing:

Warning/Problems?

After this update, I needed to disable the touchpad that it seemed very sensitive compared to what I had before. But it is maybe only my InkPlate. Change

#define TOUCHPAD_ENABLE false

within the config.h file.

lanrat commented 1 year ago

Hi @mmornati ,

Thanks for the PR!

I've also observed the same problem with the touchpads. It seems to be caused by the touchpad calibration value on first boot, which if powered over USB, seems to make them way too sensitive.

I've found that simply rebooting the Inkplate after disconnecting USB power solves this problem. I'll add a note in the readme for this.