Project showcase

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

An SPI config change for using a Nokia LCD.

  • 712 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

Kravox! Wireless, Motion and Touch-Sensing Instrument

Project tutorial by Tim Krahmer

  • 3,467 views
  • 2 comments
  • 20 respects

High Precision Scale with Arduino

Project showcase by mPelectronic

  • 4,508 views
  • 11 comments
  • 23 respects

WIZnet S2E Deadbolts

Project tutorial by S2E Lock

  • 1,362 views
  • 2 comments
  • 8 respects

Super-Go: An Industrial IoT bot

Project tutorial by KS

  • 1,025 views
  • 2 comments
  • 6 respects

Automatic Watering System

Project tutorial by Manson Hau

  • 6,035 views
  • 11 comments
  • 29 respects

DIY Photogrammetry Turntable

Project showcase by alfiosky4

  • 3,764 views
  • 5 comments
  • 11 respects
Add projectSign up / Login