nokia-5110-lcd (community library)
Summary
Name | Value |
---|---|
Name | nokia-5110-lcd |
Version | 0.0.7 |
Installs | |
License | GNU GPLv3 |
Author | Jim Lindblom, Grayson Smith |
URL | https://github.com/dgsmith/sparkcore-nokia5110lcd |
Repository | https://github.com/dgsmith/sparkcore-nokia5110lcd.git |
Download | .tar.gz |
All Versions | 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1 |
An Implementation of Sparkfun's Nokia 5110 Library for the Spark Core
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.
SparkCore-Nokia5110LCD
A library for manipulating Nokia's 5110 LCD for the Spark Core. Implementation based on Sparkfun's Nokia 5110 LCD Library.
Components Required
- A Nokia 5110 LCD (get at sparkfun.com or eBay or Amazon)
Example Usage
See this flashable, extensive example for details, or, in a nutshell:
Nokia5110LCD::Display nokiaLCD(D0, D1, D2, A0); // SCE pin, RESET pin, Data/Command, and backlight pins
void setup() {
nokiaLCD.begin();
nokiaLCD.updateDisplay(); // with displayMap untouched, SFE logo
}
void loop() {
// send various chars, strings, shapes to the buffer and write them to the display...
}
Nuances
The first three parameters in the constructor can be any output pin
The Backlight pin should be able to implement PWM (aka analog pin)
The Serial data and Serial clock pins should stay at the default A3 and A5, respectively.
Building locally
If you are building locally, place the files here:
..\core-firmware\inc\nokia-5110-lcd.h
..\core-firmware\src\application.cpp (renamed from example.cpp)
..\core-firmware\src\nokia-5110-lcd.cpp
Browse Library Files