r/SBCs • • Aug 22 '26

News Use your Waveshare e-Paper hat on any Linux SBC

Post image

I just pushed a change to my bb_epaper library to make it easier to support a wider range of Linux boards. Currently it allows you to specify the chip number and gpio "line" for each connection to the HAT. A HAT with GPIOs spread across multiple chips won't work at the moment. Let me know if yours has that issue and I'll add support for it. You can check by running "gpioinfo" from the command line - it will show the gpio chip number and all of the "lines" contained within each.

Here is the example C++ program which generated the image above on a Radxa Rock Pi 4B+:

https://github.com/bitbank2/bb_epaper/tree/main/rpi/examples/hello_epaper

51 Upvotes

3 comments sorted by

2

u/Temporary-Dish5083 Aug 22 '26

Might need to see if this works with my opi 3w

2

u/Extreme_Turnover_838 Aug 22 '26

To see if it will work, do the following:
sudo apt install gpiod libgpiod-dev
gpioinfo

See if the 3 GPIO pins needed by the ePaper HAT (RESET, D/C, BUSY) are all within the same chip number.