Detailed tutorial on connecting and programming the Nokia 5110 LCD. In this first part I'm only concerned with sending the bare minimum of commands so that something appears on the screen (all pixels on in this case).
Code is written from scratch, no libraries are used in this tutorial. Code is listed below.
#define RST 12
#define CE 11
#define DC 10
#define DIN 9
#define CLK 8
void LcdWriteCmd(byte cmd)
{
digitalWrite(DC, LOW); //DC pin is low for commands
digitalWrite(CE, LOW);
shiftOut(D
آی-ویدئو