128x64 OLED - SPI or I2C?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
quade
 
Posts: 61
Joined: Sat Dec 14, 2013 5:03 pm

128x64 OLED - SPI or I2C?

Post by quade »

What are the advantages / disadvantages of running the http://www.adafruit.com/products/938 in SPI or I2C modes?

I'm currently fooling around with that in SPI mode trying to display information coming from a http://learn.adafruit.com/adafruit-ultimate-gps. My first intuition was to simply lift some code from each example sketch, but as I've learned it's easy to rapidly run out of SRAM even when using F() to store some of the text in flash memory.

Would running the OLED in I2C mode help or hurt that effort?

Thanks,

quade

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

Re: 128x64 OLED - SPI or I2C?

Post by adafruit_support_mike »

Neither protocol will change the memory usage much. The main difference between SPI and I2C is that SPI can run faster but is a little more complicated and uses more pins, while I2C is simpler and only uses two pins, but is slower.

User avatar
quade
 
Posts: 61
Joined: Sat Dec 14, 2013 5:03 pm

Re: 128x64 OLED - SPI or I2C?

Post by quade »

Thanks for the clarification and confirmation.

Happy New Year!


quade

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

Return to “Microcontrollers”