Project showcase

Using SPI Port 2 for Nokia LCD © CC BY-NC-SA

An SPI config change for using a Nokia LCD.

  • 774 views
  • 0 comments
  • 1 respect

Components and supplies

Apps and online services

About this project

This is a small config change for using an Nokia LCD screen on the second SPI port. The screen should be supplied with 3V; I used resistors as a not-so-good solution. Was a part of my Basic Aquatic Schield project.

You can connect the CE pin to a differend pin.

Code

Part of INIC/C++
//
// SPI port 2 for Nokia LCD by @TOM - info at aquapoeder.nl
// https://www.hackster.io/Tom_van_Loon/using-spi-port-2-for-nokia-lcd-02e44b
//
// https://creativecommons.org/licenses/by-nc-sa/2.0/
// Feel free to send me your adaptions
//
// Part of INI


#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>


// LCD setup change
// Reset = 10
// CE    = gnd
// DC    = 11
// Din   = 12
// CLK   = 13

Adafruit_PCD8544 display = Adafruit_PCD8544(13, 12, 11, 8, 10);

#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2

#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH  16
Part of SETUPC/C++
Part of setup
// Part of SETUP

void setup()   {
  
  Serial.begin(9600);

  display.begin();
  
  // init done you can change the contrast for the best viewing!
  
  display.setContrast(55);
  
Part of LOOPC/C++
Part of MAIN
void loop() {

display.display();

    display.setTextSize(1);
    display.setTextColor(BLACK);
    display.setCursor(0,0);
   
    display.println("T2 =");
    
}

Schematics

Schematic
Spi2 nkklw6glfx

Comments

Similar projects you might like

Arduino Bluetooth Basic Tutorial

by Mayoogh Girish

  • 454,698 views
  • 42 comments
  • 237 respects

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 285,938 views
  • 95 comments
  • 672 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 230,084 views
  • 38 comments
  • 239 respects

OpenCat

Project in progress by Team Petoi

  • 196,439 views
  • 154 comments
  • 1,366 respects
Add projectSign up / Login