/* Nokia 5100 LCD Example Code Graphics driver and PCD8544 interface code for SparkFun's 84x48 Graphic LCD. https://www.sparkfun.com/products/10168 by: Jim Lindblom adapted from code by Nathan Seidle and mish-mashed with code from the ColorLCDShield. date: October 10, 2013 license: Officially, the MIT License. Review the included License.md file Unofficially, Beerware. Feel free to use, reuse, and modify this code as you see fit. If you find it useful, and we meet someday, you can buy me a beer. */ /* * Further modifications by Mithat Konar: minimal test, different pins, different contrast. * * Notes: * This minimal version uses 6% of program storage space and 26% of dynamic memory. * Different fonts can be experimented with. */ /* Mithat's pin assignments (set in LCD_Functions.h): * RST: 8 * CE/CS/SCE: 10 * DC/"D/C": 9 * DIN/DN/MOSI/DATA: 11 * CLK/SCLK/SCK: 13 * VCC: 3.3V * LIGHT/LED: ground through 330 ohm. * GND: ground */ #include #include "LCD_Functions.h" void setup() { lcdBegin(); // This will setup our pins, and initialize the LCD setContrast(55); // Good values range from 40-60 setStr("Nokia 5110", 0, 12, BLACK); setStr("Hello World!", 0, 28, BLACK); updateDisplay(); } // Loop does nothing! void loop() { }