Rpi-hw (short for “Raspberry Pi Hardware”) is a free C++ library
designed to manage the Raspberry Pi’s GPIO connector and its other buses.
It allows you to connect several devices to the board (including displays, keypads, stepper motors, and sensors) as you would with Arduino’s libraries.
The latest sources of Rpi-hw are available on github.com at:
- Low-level access to the GPIO Connector and SPI, I2C, UART buses
- High-level input/output interfaces
- Support for I/O expander ICs
- Support for many devices, including displays, keypads, stepper motors, and sensors (see “List of supported devices” section)
- Unicode support (built-in)
- Support for standard fonts (using FreeType) (optional)
- Support for multiple image formats (using Magick++ API) (optional)
- Drawing functions
List of supported devices
- 8-bit I/O expander with I2C/SPI (MCP23008, MCP23S08)
- 16-bit I/O expander with I2C/SPI (MCP23017, MCP23S17)
- Character LCDs (Hitachi HD44780) - example
- Graphical LCDs (Philips PCD8544) - example
- Single and multiple 7-segments diplays - example
- Matrix keypads - example
- Ultrasonic distance sensor (HC-SR04)
- Stepper motors
- Support for UART interface
Detailed documentation of Rpi-hw’s features and usage can be found on the official wiki.
The library is released under terms of the GNU LGPL v3.
Have a bug? Please create an issue on GitHub at https://github.com/Wicker25/Rpi-hw/issues.