Adafruit_PCD8544 (community library)

Summary

Name Value
Name Adafruit_PCD8544
Version 1.1.1
Installs
License BSD License
Author Limor Fried/Ladyada / Paul Kourany
URL https://github.com/pkourany/Adafruit_PCD8544_IDE
Repository https://github.com/pkourany/Adafruit_PCD8544_IDE.git
Download .tar.gz
All Versions 1.1.1, 1.1.0, 1.0.0

Adafruit_PCD8544 Nokia 5110 LCD display library

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

Adafruit-PCD8544-Nokia-5110-LCD-library

Nokia 5110 LCD library adapted for Spark Core by Paul Kourany, April 2014

!!! Updated for new Core and Photon firmware (0.4.5), Sept 2015 !!! Updated to Libraries 2.0, Jan 2017

This code compiles on the Particle web IDE

Requirement

This library requires the Adafruit_GFX library to be included in the user application.

Usage

To use HARDWARE SPI, connect the display as follows for the demo program to run:

Spark Nokia 5110 A5 (MOSI) DIN A4 (MISO) - A3 (SCK) CLK A2 (SS) CS D3 RST D2 D/C GND GND 3V3 VCC

D3(RST) and D2(D/C) may be any pin but changes must be made to constructor line:

Adafruit_PCD8544(CS, DC, RST);

demo eg: Adafruit_PCD8544 display = Adafruit_PCD8544(SS, D2, D3);

To use SOFTWARE SPI, connect the display as follows, the SCLK, DIN, DC, CS and RST lines must be specifiec and connected to the display and the constructor called as follows:

Adafruit_PCD8544(SCLK, DIN, DC, CS, RST);

eg: Adafruit_PCD8544 display = Adafruit_PCD8544(A3, A5, D2, A2, D3);

NOTES:

  • Modified code for Particle Core and Photon compatibility
  • Added hardware and (fast) software SPI to fastSPIwrite()
  • Added new create object methods for HardwareSPI:

Adafruit_PCD8544 display = Adafruit_PCD8544(CS, DC, RST);

  • Specify hardware SPI, chip select(CS pin), DC (data/command pin) and RST (reset pin)

Adafruit_PCD8544 display = Adafruit_PCD8544(DC, RST);

  • Specify hardware SPI, NO chip select, DC (data/command pin) and RST (reset pin)

  • Existing create methods will use (fast) software SPI code

  • The existing slowSPIwrite() function which uses shiftOut() is not used anywhere in the library

Browse Library Files