Giter Club home page Giter Club logo

pcd8544's Introduction

What is it?

PCD8544 is a library for the Arduino to interface with LCDs based on the Philips PCD8544 controller (datasheet) or compatibles. These displays are commonly found on older monochrome mobile phones, such as the Nokia 3310 or 5110, so if you have one of these stuck in a drawer, take it out and start hacking away! :)

This library is meant to have a minimal memory footprint. If you need graphics and other features and can spare the resources, check out the library from Adafruit.

PCD8544.png

Installation

Download the latest zip file from the releases section. Then open it from the Sketch > Include Library > Add .ZIP Library... menu inside the Arduino IDE and a new "PCD8544" entry should appear in the Sketch > Include Library and File > Examples menus.

Arduino IDE

How it Works

To use this library, you must first connect your LCD to the proper pins on the Arduino. For a Nokia 3310 display the connections would be the following:

Display Pin Arduino Pin
Pin 1 +3.3V Pin
Pin 2 (SCLK) Digital Pin 3
Pin 3 (SDIN/MOSI) Digital Pin 4
Pin 4 (D/C) Digital Pin 5
Pin 5 (SCE) Digital Pin 7
Pin 6 Ground Pin
Pin 7 10uF capacitor to Ground Pin
Pin 8 (RST) Digital Pin 6

For this display model, "Pin 1" is the leftmost pin when facing the back of the display with the connector on top.

Nokia 5110 displays are slightly different. They have an external oscillator pin between pins 5 and 6 which should be connected to +3.3V. I haven't used one of these myself, so please see the diagrams on this page for more details.

Since these LCDs are 3.3V devices, you should add extra components to connect it to the digital pins of the Arduino (not necessary if you are using a 3.3V variant of the Arduino, such as the Arduino Pro). However, the I/O pins are supposed to be 5V tolerant, so you can get by with 1K resistors in series with each pin if you like to live dangerously.

Now, take a moment and read through the included HelloWorld.ino example. It shows how to use the basic features of the library. There is also another Thermometer.ino example that demonstrates bitmapped graphics and charts.

Custom Symbols

The library allows the use of custom bitmap symbols (5x8), defined by an array of five bytes. To make it easy to create custom symbols, there's a graphical glyph editor available online.

pcd8544's People

Contributors

carlosefr avatar el-fuego avatar ondratu avatar

Watchers

 avatar

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.