if you are using esp32 boards, copy game32.py as gameESP.py or use mpy-cross to compile to gameESP.mpy ...
This a port of an Adafruit driver for use with micropython.org based and Pycom.io devices using the respecitve MicroPython variant. The driver uses the I2C interface. The sensor also supports SPI mode ...