I'd like to detect whether the Unicorn HAT HD is installed so my Gif2UnicornHat tool can automatically work on both the Unicorn HAT and the Unicorn HAT HD.
With the Unicorn HAT, I can just cat /proc/device-tree/hat/product and it tells me I have a Unicorn HAT installed. That's not so with the Unicorn HAT HD. I get No such file or directory.
I see that the Unicorn pHAT has no EEPROM which means no auto-detect even though the pinout says it has an EEPROM product ID.
So, is there some way to detect this? Or perhaps pinout.xyz is wrong for both the Unicorn pHAT and Unicorn HAT HD?
Hello!
I'd like to detect whether the Unicorn HAT HD is installed so my Gif2UnicornHat tool can automatically work on both the Unicorn HAT and the Unicorn HAT HD.
With the Unicorn HAT, I can just
cat /proc/device-tree/hat/product
and it tells me I have aUnicorn HAT
installed. That's not so with the Unicorn HAT HD. I getNo such file or directory.
I see that the Unicorn pHAT has no EEPROM which means no auto-detect even though the pinout says it has an
EEPROM product ID
.So, is there some way to detect this? Or perhaps pinout.xyz is wrong for both the Unicorn pHAT and Unicorn HAT HD?