Skip to content

feat: add lgpio hardware backend for Raspberry Pi 5 support #1

@larsrollik

Description

@larsrollik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions