Giter Site home page Giter Site logo

adafruit_pcd8544_mfgfx_ide's Introduction

Adafruit-PCD8544-Nokia-5110-LCD-library-for-Spark

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

!!! Updated for Libraries 2.0, Jan 2017

This code compiles on the Particle web IDE

Requirement

This library uses the Adafruit_GFX library.

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 for Particle Photon compatibility with Core backwards compatibility

  • Modified code for Spark Core 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

adafruit_pcd8544_mfgfx_ide's People

Contributors

pkourany avatar wgbartley avatar

Watchers

 avatar

Forkers

ponchom wgbartley

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.