NKK SmartSwitch and SPI

Hi! (sorry for my english) I bought recently an NKK Smart switch (IS15ESBFP4RGB) (https://docs.rs-online.com/a7bf/0900766b815551d1.pdf), and I can't turn its display on.
This is the wiring diagram:
NKK 8 (SS) - Arduino nano 10
NKK 7 (SCK) - Arduino nano 13 (SCK)
NKK 6 (SDI) - Arduino nano 11 (MOSI)
NKK 5 (SDO) - Arduino nano 12 (MISO)
NKK 4 (VDD) - Arduino nano 5V
NKK 3 (GND) - Arduino nano GND

and here my test code:

  #include <SPI.h>
  const int slaveSelectPin = 10;
  
void setup() {
  pinMode(slaveSelectPin, OUTPUT);
  digitalWrite(slaveSelectPin, HIGH);
  SPI.begin();
  SPI.setClockDivider(SPI_CLOCK_DIV2);
}

void loop() {
  digitalWrite(slaveSelectPin, LOW);
  SPI.transfer(B01000000);
  SPI.transfer(B11111111);
  digitalWrite(slaveSelectPin, HIGH);
  digitalWrite(slaveSelectPin, LOW);
  SPI.transfer(B01000001);
  SPI.transfer(B11111111);
  digitalWrite(slaveSelectPin, HIGH);
  delay (2000);
}

Could anybody help me to solve the problem? Thanks! :slight_smile:

Please look at library here, it might help. NKK Smart Display - new library available

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.