0

Using SSD1331 with teensy 3.0 is VERY slow
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Using SSD1331 with teensy 3.0 is VERY slow

by local_dani_21 on Fri Jan 11, 2013 6:54 pm

Hi adafruit team

I successfully connected one of you 0.96" color OLED-Displays to an teensy 3.0 http://forum.pjrc.com/threads/14816-Compile-Error-when-wanting-to-use-Adadruits-SSD1331-with-Teensy-3-0?p=18108&viewfull=1#post18108. Unfortunately, the output is very slow (I don't know if it is because of slow reading from sd card or from slow drawing to the display). For a 96x64 (fullscreen)-bitmap it takes about 4.9 sec when writing it with teensy 3.0 (@96MHz) compared to 0.5 sec when drawing it from an arduino (16 MHz).

Do you have any idea what the cause of this could be?

Thanks.

Best regards,

Dani

local_dani_21
 
Posts: 126
Joined: Sun Apr 19, 2009 3:10 pm
Location: Zürich, Switzerland

Re: Using SSD1331 with teensy 3.0 is VERY slow

by adafruit_support_bill on Sat Jan 12, 2013 7:24 am

Is it using software-spi perhaps? PJRC might be better able to answer this one.

adafruit_support_bill
 
Posts: 84374
Joined: Sat Feb 07, 2009 10:11 am

Re: Using SSD1331 with teensy 3.0 is VERY slow

by local_dani_21 on Sat Jan 12, 2013 1:16 pm

No, I use hardware SPI. Paul Stoffregen thought, I should get in touch with you guys. Is there anything to adjust about the display-clock (SSD1331 datasheet says something I don't really understand: 9.1.16 SetDisplayClockDivideRatio/OscillatorFrequency(B3h)).

Thanks, Dani

local_dani_21
 
Posts: 126
Joined: Sun Apr 19, 2009 3:10 pm
Location: Zürich, Switzerland

Re: Using SSD1331 with teensy 3.0 is VERY slow

by adafruit_support_rick on Sat Jan 12, 2013 2:23 pm

Actually, Paul Stoffgren asked if Adafruit had been notified of cmason's code fix.

If you are having speed issues communicating with the display, it must be something to do with the software you are using. The display is strictly a slave device - the teensy provides the data communication clock.

The datasheet reference has nothing to do with SPI data communications

adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Using SSD1331 with teensy 3.0 is VERY slow

by pburgess on Sat Jan 12, 2013 4:04 pm

Is hardware SPI being used on the SD interface as well?

Try reading the image data from the card but not issuing it to the display, see what the time looks like.

pburgess
 
Posts: 4109
Joined: Sun Oct 26, 2008 2:29 am

Re: Using SSD1331 with teensy 3.0 is VERY slow

by local_dani_21 on Sat Jan 12, 2013 5:44 pm

I connect the SD card over hardware SPI (I use the one on the OLED board). Furthermore I use the bmp-example that comes with the SSD1331-library with only pin numbers changed.

Interestingly, when commenting out the data-push to the display as suggested by pburgess, I see that reading from the SD card and calculating the pixeldata takes 80% of the needed time (~4sec for a 96x64pixel bmp). So I suppose that's where the problem lies. What could be in the way of reading faster? Any ideas?

Thanks a lot,

Dani

local_dani_21
 
Posts: 126
Joined: Sun Apr 19, 2009 3:10 pm
Location: Zürich, Switzerland

Re: Using SSD1331 with teensy 3.0 is VERY slow

by local_dani_21 on Sat Jan 12, 2013 5:52 pm

driverblock wrote:Actually, Paul Stoffgren asked if Adafruit had been notified of cmason's code fix.
That's right, I just realized that - I missunderstood his post, I apologize ...!

local_dani_21
 
Posts: 126
Joined: Sun Apr 19, 2009 3:10 pm
Location: Zürich, Switzerland

Re: Using SSD1331 with teensy 3.0 is VERY slow

by paulstoffregen on Sun Jan 13, 2013 1:38 pm

I ordered a couple displays. They haven't arrived yet.... but when they do, I'll investigate the slowness.

In the meantime, please merge the C++ pure virtual fix. It's needed to simply compile the code on ARM toolchains, and it's proper C++, even if the AVR compiler doesn't strictly require correct code. Other/newer g++ compilers do require it.

paulstoffregen
 
Posts: 444
Joined: Sun Oct 11, 2009 11:23 am
Location: Portland, Oregon, USA

Please be positive and constructive with your questions and comments.