piface / pifacecommon

Common functions for interacting with PiFace products
GNU General Public License v3.0
42 stars 30 forks source link

The GPIO_INTERRUPT_PIN = 25 is no longer valid in recent kernels #34

Open knob-creek opened 3 weeks ago

knob-creek commented 3 weeks ago

Since kernel 6.6 (?), the gpio pins have an offset of 512, so the correct number should be 537, now.

Cf. this bug report concerning the GPIO library

On a side note, the whole of the sysfs based API to GPIO is deprecated, so on the long run, this should be migrated to some GPIO library like lgpio.