Announcement

Collapse
No announcement yet.

4DPi-24-HAT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 4DPi-24-HAT

    I'm working on a PyQt5 application that will run on both HDMI or 4DPi-24-HAT how can I determine at run time if the 4DPi-24-HAT is attached (active display), or in general any 4D display HATs?

    Thank You
    Fred

  • #2
    You can check /proc/device-tree/hat, for example:

    cat /proc/device-tree/hat/product
    2.4 inch TFT display HAT

    if there is no HAT present there is also no /proc/device-tree/hat

    Comment

    Working...
    X