Skip to main content

New answers tagged

0 votes

#include files for https://www.kernel.org/doc/html/v4.14/driver-api/spi.html Pi5 C/C++ development

One of the Pi Engineers helped out with this answer and suggestion. Andhe later 'h file and tools used within the https://elixir.bootlin.com/linux/latest ... /spi/spi.h make this investigation very ...
Tom's user avatar
  • 1
0 votes

Issue with the SPI output on my raspberry pi using Pigpio

You have fundamental errors in your SPI code. You don't save the handle returned by spiOpen which is a parameter to spiWrite. I have never used pigpio in SPI mode but the documentation states:- int ...
Milliways's user avatar
  • 60.4k
0 votes

Get display working on SPI1

You haven't specified HOW you enabled SPI but the documentation for dtoverlay=spi1-1cs states:- Name: spi1-1cs Info: Enables spi1 with a single chip select (CS) line and associated spidev ...
Milliways's user avatar
  • 60.4k
2 votes
Accepted

Change which pin is used for SPI SCLK

The SPI0 hardware (for the Pi models you mention) only allows GPIO 11 to be the clock. It can not be reassigned. See https://pinout.xyz/pinout/spi for the GPIO/pin map.
joan's user avatar
  • 71.2k
0 votes

Using SPI and GPIO in Pi OS Bookworm on Pi 3b v1.2

As @Milliways notes, the gpiod tools are the replacement for the Linux GPIO sysfs interface. You can install them with: sudo apt install gpiod With the gpiod v1.6.3 tools currently packaged for ...
Kent Gibson's user avatar
0 votes

Using SPI and GPIO in Pi OS Bookworm on Pi 3b v1.2

The Sysfs GPIO interface has been deprecated for years and has FINALLY been removed! There must be hundreds of posts on this site discussing this topic. The official method is to install gpiod which ...
Milliways's user avatar
  • 60.4k

Top 50 recent answers are included