Trouble loading bmp from SS1331 using Feather 32u4

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
logicbird
 
Posts: 2
Joined: Sat Oct 21, 2017 9:00 am

Trouble loading bmp from SS1331 using Feather 32u4

Post by logicbird »

[edit 2]
Ha, ok I got it working now.
First I set it up using an Arduino Uno like in the tutorial (had almost forgot I had one).
Got same error in serial out so I tried a 3rd SD Card. You know what they say... Well it worked.
Set it back up with the feather as I described (I realize now the pin definitions weren't needed with the exception of #define SD_CS 5). And all is right with the world.

btw, the SD card that worked is SanDisk Ultra 8GB, there is a semicircle with a 10 in it, The letters HC, and I guess the BANNED numeral I.
----------------
Hi, I am trying to load a bmp from the SD card on the SSD1331 96x64 SPI RGB OLED (new style board) using the Feather 32u4 basic.

Resources i've been using:
https://learn.adafruit.com/096-mini-col ... ng-bitmaps
https://cdn-learn.adafruit.com/assets/a ... v2.3-1.png

So far I have been able to successfully run test.ino with the following setup.
Connections I used for successful test.ino attempt
Connections I used for successful test.ino attempt
feathertest.png (227.71 KiB) Viewed 309 times
I'm using (according to library.properties):
  • Adafruit GFX Library version 1.2.2
    Adafruit SSD1331 OLED Driver Library for Arduino 1.0.2
Just got them straight from the tutorial page.

So that much seems to work great, but I'm not sure how to proceed with loading a bitmap.

I know from the tutorial that I need to add two more connections.
My best guess at how to do that would be:
  • Feather MISO (IDE 14) to SSD1331 MISO (SO)
    Feather IDE 5 to SSD1331 SDCS (SC)
and in bmp.ino change
#define SD_CS 4
to
#define SD_CS 5

Along with previous pin changes I used in test.ino

When I do this, the screen turns blue then fails to load the sd card.
Serial Monitor Output:
init
Initializing SD card...failed!

My sd card is Pny 8gb (also tried samsung 16gb).
My image is 96x64 24bit bmp (not that it seems to get far enough for that to matter yet)

Can anyone help me on how to get the connections right and how to modify bmp.ino to understand them.

Thanks!

[Edit]
I just found out about Fritzing so bare with me but here are cleaner images of the connections:
Connections I used for successful test.ino attempt
Connections I used for successful test.ino attempt
Fritzing OLED Feather Test.png (294.86 KiB) Viewed 298 times
Connections I used for un-successful bmp.ino attempt
Connections I used for un-successful bmp.ino attempt
Fritzing OLED Feather bmp.png (290.87 KiB) Viewed 298 times
Last edited by logicbird on Sun Oct 22, 2017 5:00 am, edited 2 times in total.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trouble loading bmp from SS1331 using Feather 32u4

Post by adafruit_support_mike »

Those connections are the right ones.

Post a photo showing your hardware and connections and we'll see if those have any clues. 800x600 images usually work best.

User avatar
logicbird
 
Posts: 2
Joined: Sat Oct 21, 2017 9:00 am

Re: Trouble loading bmp from SS1331 using Feather 32u4

Post by logicbird »

Thanks Mike,
Just edited my post after I got it working!

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trouble loading bmp from SS1331 using Feather 32u4

Post by adafruit_support_mike »

Glad to hear it. Happy hacking!

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”