User avatar
theoriginalxbrav
Posts: 41
Joined: Sun May 12, 2013 7:16 pm

SPI and SSD1325

Sun May 12, 2013 7:32 pm

Hey folks,

I'm having an impeccable time getting an SSD1325 going with my Pi. I'm using gaugette's SSD1306 library, as the SPI commands are identical between the two.

Part of my issue is the cross-terminology between Newhaven's and the RPi's pin labels for SPI. Can anyone verify my wiring before I get into software diagnosis?

Raspberry Pi -> SSD1325
CE0 -> /CS
TXD -> /RES
SCLK -> SCLK
MOSI -> SDIN
RXD -> D/C

I hooked it up as per this Adafruit drawing: http://guy.carpenter.id.au/gaugette/res ... sd1306.jpg

I've attached the manufacturer's drawings for reference. Thanks!
Attachments
serial interface 2.png
Visual Serial Interface for SSD1325
serial interface 2.png (19.48 KiB) Viewed 2819 times
serial interface.png
Serial Interface for SSD1325
serial interface.png (54.43 KiB) Viewed 2819 times
Projects:
Raspberry Pi Weather Camera and weeWX: http://reboot.us.com/local-weather/
Daily Timelapses: https://www.youtube.com/playlist?list=PLi1er5S-VzV8d2t21zT0U_aBInl1_Ojkf

austinp
Posts: 15
Joined: Thu May 09, 2013 1:35 pm

Re: SPI and SSD1325

Mon May 13, 2013 3:59 am

Could you post a picture of the actual wiring job ?

User avatar
theoriginalxbrav
Posts: 41
Joined: Sun May 12, 2013 7:16 pm

Re: SPI and SSD1325

Mon May 13, 2013 5:17 am

austinp wrote:Could you post a picture of the actual wiring job ?
Sorry for the late reply. Wiring is now working, but it looks as though I'll have to write a new library. The way it interfaces is different, so my display now gives me garbled data. However, I can confirm wiring is now good.

I'll update this thread when I have a working library to share.
Projects:
Raspberry Pi Weather Camera and weeWX: http://reboot.us.com/local-weather/
Daily Timelapses: https://www.youtube.com/playlist?list=PLi1er5S-VzV8d2t21zT0U_aBInl1_Ojkf

User avatar
theoriginalxbrav
Posts: 41
Joined: Sun May 12, 2013 7:16 pm

Re: SPI and SSD1325

Sat May 18, 2013 3:02 pm

I have a functional library that relies on a full buffer 2-dimensional array if anyone is interested. Demo video: http://www.youtube.com/watch?v=F0YlxdMh ... e=youtu.be
Projects:
Raspberry Pi Weather Camera and weeWX: http://reboot.us.com/local-weather/
Daily Timelapses: https://www.youtube.com/playlist?list=PLi1er5S-VzV8d2t21zT0U_aBInl1_Ojkf

pravdam
Posts: 1
Joined: Sun May 19, 2013 7:55 pm

Re: SPI and SSD1325

Sun May 19, 2013 9:17 pm

theoriginalxbrav wrote:I have a functional library that relies on a full buffer 2-dimensional array if anyone is interested. Demo video: http://www.youtube.com/watch?v=F0YlxdMh ... e=youtu.be
It's perfect. Can you share your library and demo? I have the same display, but i am not able to make it work. Thanks

User avatar
theoriginalxbrav
Posts: 41
Joined: Sun May 12, 2013 7:16 pm

Re: SPI and SSD1325

Thu May 23, 2013 8:47 pm

Sorry for the late reply.

Here's my GIT for the test:

https://github.com/XBrav/py-ssd1325

So far, I've had no issues drawing images on the display. My example code is on my Pi at home, so I'll have to upload it later.

The library uses a 2-dimensional array to buffer all the pixels for loading (sort of like a horrible framebuffer). I'm not native to Python coding, so I'm sure the code can be optimized immensely.
Projects:
Raspberry Pi Weather Camera and weeWX: http://reboot.us.com/local-weather/
Daily Timelapses: https://www.youtube.com/playlist?list=PLi1er5S-VzV8d2t21zT0U_aBInl1_Ojkf

Return to “Interfacing (DSI, CSI, I2C, etc.)”