# Bug: Raspberry Pi library has SPI channel labels reversed

**URL:** <https://librepcb.discourse.group/t/bug-raspberry-pi-library-has-spi-channel-labels-reversed/1082>\
**Category:** Libraries\
**Created:** [October 16, 2026, 10:13am UTC](https://librepcb.discourse.group/t/bug-raspberry-pi-library-has-spi-channel-labels-reversed/1082 "2026-10-16T10:13:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grubernd](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/grubernd/32/651_2.png) [@grubernd](https://librepcb.discourse.group/u/grubernd)\
**Post date:** [October 16, 2026, 10:13am UTC](https://librepcb.discourse.group/t/bug-raspberry-pi-library-has-spi-channel-labels-reversed/1082/1 "2026-10-16T10:13:07Z")

</div>

The naming of the SPI channel signals have the wrong labeling.

- If you wire up by the “CEx” numbers, your schematic and PCB will be wrong
- If you wire by the “GPIOnn” numbers, your schematic and PCB will be correct

This is how they are named correctly:

Pinout (LibrePCB): 24 == GPIO08/ **CE0**

Pinout (LibrePCB): 26 == GPIO07/ **CE1**

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [October 24, 2026, 4:51am UTC](https://librepcb.discourse.group/t/bug-raspberry-pi-library-has-spi-channel-labels-reversed/1082/2 "2026-10-24T04:51:37Z")

</div>

Thanks for reporting @grubernd! I fixed it, and the new library version 0.2.3 is available in the library manager.

> <https://github.com/LibrePCB-Libraries/RaspberryPi.lplib/pull/23>
>
> \##### SUMMARY
> 
> 
> Fixes https://librepcb.discourse.group/t/bug-raspberry-pi-librar…y-has-spi-channel-labels-reversed/1082
> 
> \##### DATASHEETS / REFERENCES
> 
> 
> https://www.raspberrypi.com/documentation/computers/raspberry-pi.html
> 
> \##### OPEN QUESTIONS / UNRESOLVED ISSUES
> 
> 
> 
> \##### CHECKLIST
> 
> 
> \- \[x\] I have read and followed the library conventions¹.
> \- \[\] For packages, I followed IPC7351C (see details in library conventions).
> \- \[x\] For modified elements, I bumped their version number².
> \- \[\] I already used the new library elements in a design and verified their correctness (optional).
> \- \[x\] I'm the copyright owner of the added content (i.e. the changes are made by myself, not copied/imported from somewhere else).
> \- \[x\] I agree to publish all my changes under the CC0 Public Domain License³, allowing everyone to use and modify the content without any restrictions.
> 
> ¹ \*Library Conventions: https://docs.librepcb.org/#libraryconventions\*
> ² \*Minor version bump if only metadata was modified (e.g. "0.1" -\> "0.1.1"), major version bump if functional changes were made (e.g. "0.1" -\> "0.2")\*
> ³ \*CC0 Public Domain License: https://en.wikipedia.org/wiki/CC0\*
