Can the Piano Hat be used with the Le Potato

My wife bought me the Piano Hat by Pimoroni for father’s day. I thought it was the most thoughtful gift. However, I realized that the Piano hat was designed for the Raspberry Pi pinout. My understanding is that the Le Potato does not have the same pinout. Is that correct? if so, is there a way to remap the pinout? or is there an alternative so that I can get the Piano Hat to work with the Le Potato?

  1. The HAT is hardware compatible.
  2. You need to use the ldto to enable i2c overlays.
  3. You need to modify the pianohat python code to use the right i2c device. /dev/i2c0 or /dev/i2c1. This should be very easy.
  4. You need to modify the pianohat python code to use the right GPIO numbering for the reset and alert pins. Piano HAT at Raspberry Pi GPIO Pinout Hopefully it uses sysfs or gpiod rather than RaspiGPIO as we cannot help you with RaspiGPIO. This could be very easy or moderately difficult if it uses the non-standard RaspiGPIO library.

What os are you refering to when you say to use the IDTO to enable i2c?
I ran the following and got a command not found error.

gismc@lepotato:~ $ idto -l
bash: idto: command not found
gismc@lepotato:~ $ sudo apt install idto
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package idto

I tried this on Raspbian OS and Ubuntu Server OS. I used a fresh copy of the image from the libre website.

You have the command wrong. l not i.