Project showcase

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

An SPI config change for using a Nokia LCD.

  • 189 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.

Schematics

Schematic
Spi2 nkklw6glfx

Code

Part of INIC/C++
//
// SPI port 2 for Nokia LCD by @TOM at aquapoeder.nl
// https://www.hackster.io/Tom_van_Loon/using-spi-port-2-for-nokia-lcd-02e44b
//

// 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 =");
    
}

Comments

Similar projects you might like

Arduino Obstacle Avoidance Robot with Ultrasonic HC-SR04

Project tutorial by Jorge Rancé

  • 614 views
  • 1 comment
  • 10 respects

Using Finite State Machines

by Gustavo Gonnet

  • 6,575 views
  • 2 comments
  • 19 respects

Alexa: "Your Clothes Are Dry"

Project in progress by TNunnster

  • 1,587 views
  • 0 comments
  • 5 respects

How to Configure NeoPixels Using Vixen Lights and Arduino

Project tutorial by Victor Aguilar

  • 322 views
  • 0 comments
  • 3 respects

Temperature Streaming with Arduino + Big Data Tools

Project showcase by Gabriel Rodriguez

  • 1,579 views
  • 1 comment
  • 15 respects

Bluetooth Speaker w/ Music-Reactive LED Matrix

Project tutorial by Modustrial Maker

  • 3,734 views
  • 0 comments
  • 14 respects
Add projectSign up / Login