2024-05-04, 09:22 PM
(2024-05-04, 09:30 AM)Sailoog Wrote: After reading https://github.com/pypilot/workbook/wiki...-interface I have realized that currently openplotter is not checking GPIO conflicts well. We should parse ~/.pypilot/hat.conf and we are not doing this. I will add this to openplotter v4 ASAP.
Question. I can se this in ~/.pypilot/hat.conf: "gpio27_06", does this mean that both GPIO27 and GPIO06 are used?
I am not sure exactly what you are referring to, but it likely indicates that if both of those gpio are pressed at the same time a particular action is triggered. So yes, in that case both would be used.
I am not sure parsing hat.conf is the way to solve this though, that file just defines actions. Instead we might need a separate way to manage GPIO. Right now, pypilot_hat just grabs certain gpio and assumes it has the right to use them.

