Controlling 12864 lcd with SPI

Hi all.

I have a 12864 lcd display which i am trying to control via SPI using the U8G2 library.

The first thing i am having trouble with is determining which constructure to use in the example sketch.
Any advice on how i am ment to determine which one to use?

The next thing i am wondering is since i am using an arduino mega to control this display, are the SPI pins the same as all other variance of arduino. If so what are the designated pin outs I should be using?

Thanks for your time and help.

Hi all

I have an upcoming project were i need to control a 12864 lcd display and a nrf24l01 radio transverses using SPI from an arduino mega.

My question is in regards to the wiring of these devices.

Firstly im wondering which pins are suitable for SPI communication in the arduino mega?

Secondly i am wondering if the slave select pins can be any digital pin or is there sertent pins they have to be mapped to?

Thanks for the help.

Your two or more topics on the same or similar subject have been merged.

Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

See the Mega pinmap
For stupid reason the MISO and MOSI pins have been renamed CIPO and COPI.

The SS pin is mandatory for the controller in slave mode. In master mode any output pin can be connected to a slave SS. The master code also must explicitly select a slave, the SPI library can not do that.
.

Excellent.

I will try those connections tomorrow and see if i can get this 12864 lcd display working.

Do you have any advice on how to determine
which is the right construction for my display when using the U8G2 library?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.