Dijital
Posts: 20
Joined: Wed Nov 19, 2014 12:37 pm

Question: PSP analog controller on Pi with lcd screen connec

Wed Jan 07, 2015 6:38 pm

Hi all,

I've managed to connect an ILI9341 screen to my Pi and its running well, I wanted to connect a PSP analog controller the Pi via the GPIO pins (guide here : http://www.newsdownload.co.uk/pages/RPi ... stick.html )

But I have a problem, pins 19,21,23 and 24 are currently being used by the LCD screen. Is there a way to change the pins it uses? I cant make any sense of the readme or ini files.

Any help will be greatly appreciated.

Thanks!

User avatar
DougieLawson
Posts: 37504
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Question: PSP analog controller on Pi with lcd screen co

Wed Jan 07, 2015 7:21 pm

Those pins are the SPI interface spidev0.0 pin 24 is chip select 0 and can't be directly shared.

You can use 19, 21, 23 & 26 which is spidev0.1 pin 26 is chip select 1. The alternative chip select is the thing that makes it possible.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Dijital
Posts: 20
Joined: Wed Nov 19, 2014 12:37 pm

Re: Question: PSP analog controller on Pi with lcd screen co

Wed Jan 07, 2015 8:29 pm

WHOOSH! :D

So, you are saying pins 19, 21 & 23 can be shared and I move pin 24 to pin 26 right?

Thanks!

User avatar
DougieLawson
Posts: 37504
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Question: PSP analog controller on Pi with lcd screen co

Wed Jan 07, 2015 9:33 pm

Not quite. I'd leave your display on pin #24 (/dev/spidev0.0 with CS0) and move your PSP controller to pin #26 (/dev/spidev0.1 with CS1) or you'll have to start overriding parameters for the fbtft_device kernel device driver to move your display from CS0 to CS1.

It's probably easier to change the code for the PSP.

Note: some folk will label CS0 & CS1 (chip select) as CE0 & CE1 (chip enable) just to help with the confusion.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Dijital
Posts: 20
Joined: Wed Nov 19, 2014 12:37 pm

Re: Question: PSP analog controller on Pi with lcd screen co

Wed Jan 07, 2015 10:13 pm

Jolly good.

Thanks for the info!

Return to “HATs and other add-ons”