Skip to content

feat: InkPlate lib update to latest version#22

Merged
lanrat merged 1 commit intolanrat:mainfrom
mmornati:feat_inkplate_lib_update
Mar 29, 2023
Merged

feat: InkPlate lib update to latest version#22
lanrat merged 1 commit intolanrat:mainfrom
mmornati:feat_inkplate_lib_update

Conversation

@mmornati
Copy link
Copy Markdown
Contributor

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:

  • All the MCP23017_INT_ADDR with MCP23017_INTFA
  • All the display.mcpRegsInt with display.ioRegsInt

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
Copy link
Copy Markdown
Owner

lanrat commented Mar 29, 2023

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.

@lanrat lanrat merged commit 74413b0 into lanrat:main Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants