I'm new to the world of GPIO pins and I have 2 HATs that both want access to GPIO 18.
As this is an output pin can you share it between 2 HATS without side effects?
I'm new to the world of GPIO pins and I have 2 HATs that both want access to GPIO 18.
As this is an output pin can you share it between 2 HATS without side effects?
Given the level of detail in your question, the answer is "probably not". That would require one HAT have intimate knowledge of how the other HAT was using the pin, and that the developers were clever enough to avoid conflict.
I was in similar situation: my DAC HAT was operating on non-configurable GPIO PIN (PCM) and then I needed to install a fan that was coming with the script using the same pin. Fortunately, the fan script was open source and I was able to change the configuration in it to use another pin and then I reconnected the fan to the new pin. Sometimes you might not be so lucky - in example the HAT has hardcoded pin and you cannot change neither its configuration nor even the physical connection.