Pages: [1]   Go Down
Author Topic: Question about the Nokia 5110 84X48 display  (Read 429 times)
0 Members and 1 Guest are viewing this topic.
Louisiana, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a few questions for those of you familiar with the Nokia 5110 84X48 display.

I've used it in conjunction with the Adafruit libraries -
https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library
https://github.com/adafruit/Adafruit-GFX-Library

I know when you use one of the graphics primitive from the GFX library,for instance:
display.drawPixel(10, 10, BLACK);

the pixel is written to the buffer only, until you use a command like this:
display.display();

at which point the pixel is written to the screen.

I also understand that since this is a SPI device, the library must set the CS pin of the SPI screen being communicated with to LOW to enable transmission. (or it might be high or some other state.  not really sure)

Anyway, I have a couple of questions.

1. Where is the screen buffer?  Is it located on the Nokia 5110 board somewhere, or is it stored on the Arduino?
2. Does the Adafruit library enable and disable the CS pin for the display each time a command is issued, or does the pin stay enabled once the init command is issued?  I'm curious because I would like to drive multiple LCD's from one Arduino. 

For instance, I define two screens, leftScreen and right Screen, and set all pins the same in the setup, except for the CS pin

In the body of the code would I be able to do something like this:

leftScreen.drawStuff(x,y,z);
rightScreen.drawStuff(i,j,k);
leftScreen.display();
rightScreen.display();

I hope my questions make sense.  I'm going to give this a shot later tonight, but if any of you have some input now it could probably save me a little time and frustration.  smiley

Thanks!
SPInoob
Logged


Pages: [1]   Go Up
Jump to: