Switch to full style
Show us your Gamebuino clone or the last module you made.
Post a reply

Re: LCD screen advice

Tue Aug 30, 2016 9:41 pm

Ok i found a page that tells me how to hook up the Nokia 5110 screen but I still can't figure out where DC goes......

http://hackers.gallery/660/electronics/ ... cd-display

Looks like I will need to change some pins in the settings file though

Re: LCD screen advice

Wed Aug 31, 2016 7:33 am

Hello Duhjoker

DC is data/command select as someone here already pointed out.

What you need to understand, is some basics of the SPI protocol. Its just not a simple question of "what pin does D/C go to?". You need to understand what each pin does. Once you understand what the pins mean, you can start to build any kind of console with any kind of SPI screen.

Image

This is how SPI works:
- there is a master
- there is one or more slaves
- notice, that there are only 4 pins going into each slave

This is what the pins do:
- SCLK is the clock line. Very important. It synchronises the Master and the Slaves to exchange information at the same speed.
- MOSI - Master Out, Slave In. Data from master to slave. This goes from master mosi to slave (lcd) SCR_DIN as you figured out
- MISO - data in the opposite direction
- SS - slave select. In order to tell WHICH slave is supposed to get the next command or data, the Master pulls this pin LOW to talk to each slave. Only one slave should be active at the same time. All other SS lines should be HIGH. SS is often also called CS (cable select) or EN (enable)

Now, you notice now that there is NO DC line in this picture.

How can it be ?

The DC or D/C is a feature, that is specific to the 5110 graphics driver chip. It has nothing to do with the SPI protocol. Therefore, the DC pin can be ANY NORMAL PIN you choose from the Master side. You choose what pin it is, by specifying it in the program code.

So you see, there is no one answer to your question. You need to look at the code and/or copy paste it here to find out what pin on the Master is the DC.

Re: LCD screen advice

Wed Aug 31, 2016 7:50 am

Awesome thank you for the explanation.

Ok since this is the wrong forum for hardware development i went ahead and made a mast topic to cover everything involved in building the console.

viewtopic.php?f=11&t=3482
Post a reply