Hello, I am trying to connect my Nicla Sense ME with an additional external device through SPI. However using the SPI minimal example as found on the cheat sheet it seems there is only silence when monitoring the GPIO logic levels of CS, CIPO, COPI or SCLK with an Oszi. What am I missing? Thank you & Regards, Rob #include <SPI.h>
#include "Nicla_System.h"
#define EPD_CS p29
void setup() {
nicla::begin(); // initialise library
nicla::leds.begin(); // Start I2C connection
SPI.begin();
}
void loop() {
nicla::leds.setColor(green); //turn green LED on
delay(1000); //wait 1 second
nicla::leds.setColor(off); //turn all LEDs off
delay(1000); //wait 1 second
digitalWrite(EPD_CS, LOW); //pull down the CS pin
SPI.transfer(0x00); // address for device, for example 0x00
SPI.transfer(0x01); // value to write
digitalWrite(EPD_CS, HIGH); // pull up the CS pin
}
... View more