GPIO Leds' Pins


#1

Hi, is there any list where we can see the specific pinout for every piece of hardware the pisound board is using?
I have seen in another topic @Giedrius was mentioning that “the button” uses pin 17 for instance. I know there’s a pinout diagram but doesn’t actually shows where LED’s and other stuff is connected to.

Thanks!


#2

Hey, the LEDs are not connected to RPI GPIO, they’re connected to a microcontroller on Pisound which is in charge of MIDI communication. You can flash the LEDs for variable duration by doing what this script does: https://github.com/BlokasLabs/pisound/blob/master/scripts/common/common.sh#L38

Best way to use it is to ‘include’ it from your scripts and call the flash_leds function, something like this:

. /usr/local/pisound/scripts/common/common.sh # This imports the common.sh

flash_leds 100

Only the button GPIO might be useful to know, the rest of the used pins are used for internal functions of the Pisound board, like resetting the codec, selecting the sampling rate, communication via SPI bus, audio via I2S pins, etc… All of that is taken care of by the Pisound kernel module, and it wouldn’t be useful to access those pins from user space code.


#3

Excellent @Giedrius! A lot clearer now :grinning:
Thanks for the clarifications!