Here’s a link to the example python scripts.
You will need to sort out your i2c problem first. The 8 flashes on the ZYMKEY means i2c is not communicating. The error from python when you attempt to import zymkey is also due to i2c communication failure. The example scripts will fail in the same manner.
A couple of things to check:
- Power supply: You need a good Power Supply like the official Raspberry PI or Canakit. The PI4 needs 3.5A. A phone charge will not work. This is the most common problem we see.
- Anything else using GPIO pins. Is the ZYMKEY the only device on your PI? The ZYMKEY needs exclusive use of GPIO4
- Sometimes with Ubuntu 20.04, the automatic upgrade process interferes with a regular apt-get update, apt-get upgrade. Did the installation go smoothly or did you have to re-run, etc.