cvra / robot-software

CVRA monorepo - All software running on our bots lives here
MIT License
43 stars 21 forks source link

Implement reading front panel GPIOs #279

Closed antoinealb closed 4 years ago

antoinealb commented 4 years ago

This implementation uses libgpiod, which is the new recommended API for dealing with GPIO from userland (sysfs is considered deprecated).

It does so by creating a thin wrapper in C++ that makes it easy to open a GPIO for reading and to read its state. It also exposes new flags for setting up to which GPIO the buttons are connected.

This still needs to be tested on hardware.