0

1.3" 128x64 OLED HW SPI with Mega 2560
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

1.3" 128x64 OLED HW SPI with Mega 2560

by alex_x on Mon Oct 09, 2017 2:11 pm

I've got this display (https://www.adafruit.com/product/938) hooked up to my Mega and can get it working in SW SPI but not HW.

Can anyone list the pins from the display to the mega for HW SPI.
Data ->
Clk ->
DC ->
Rst ->
CS ->

And what the initialising code for the SSD1306 library would be?

alex_x
 
Posts: 2
Joined: Fri Oct 06, 2017 6:52 am

Re: 1.3" 128x64 OLED HW SPI with Mega 2560

by adafruit_support_carter on Tue Oct 10, 2017 11:45 am

Can anyone list the pins from the display to the mega for HW SPI.

SPI pins are discussed here:
https://learn.adafruit.com/monochrome-o ... g-with-spi
Also see the "Connections" section here:
https://www.arduino.cc/en/Reference/SPI

And what the initialising code for the SSD1306 library would be?

The example sketch in the library is setup for software SPI by default. To switch to hardware SPI, comment out the software SPI initialization and uncomment the hardware SPI section here:
https://github.com/adafruit/Adafruit_SS ... pi.ino#L32

adafruit_support_carter
 
Posts: 3430
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.