Summary
Add an `lgpio` hardware backend alongside the existing `pigpio` backend.
Motivation
`pigpio` is unmaintained (last release 2021), the apt package is gone from Raspberry Pi OS Bookworm/Trixie, and it is fundamentally incompatible with the Raspberry Pi 5 (RP1 PCIe GPIO chip). For frame-sync TTL pulses at ≤200 Hz / ≥1 ms duration, `lgpio` (chardev-based, pip-installable, RPi 4+5) provides ±50 µs jitter — well within the default barcode tolerance.
Proposed work
- Add `src/ttl_barcoder/hardware/lgpio/` module mirroring the `pigpio` interface
- New optional extra: `pip install ttl-barcoder[lgpio]`
- Keep `pigpio` backend for RPi 3/4 users who prefer it
- Update `hardware.md` docs with lgpio usage and daemon-free setup notes
Related
Same migration is planned for `rpi-camera-ensemble` TTL outputs.
Summary
Add an `lgpio` hardware backend alongside the existing `pigpio` backend.
Motivation
`pigpio` is unmaintained (last release 2021), the apt package is gone from Raspberry Pi OS Bookworm/Trixie, and it is fundamentally incompatible with the Raspberry Pi 5 (RP1 PCIe GPIO chip). For frame-sync TTL pulses at ≤200 Hz / ≥1 ms duration, `lgpio` (chardev-based, pip-installable, RPi 4+5) provides ±50 µs jitter — well within the default barcode tolerance.
Proposed work
Related
Same migration is planned for `rpi-camera-ensemble` TTL outputs.