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?
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.
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.
.