04-29-2023 09:34 PM - edited 04-29-2023 09:36 PM
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
}
Solved! Go to Solution.
09-14-2023 10:43 AM
Hi RobP,
Sorry for the delayed reply.
We will check it and give feedback later.
09-19-2023 08:06 AM
Hi RobP,
After internal check, this is nRF52832 related question, and it's not relevant to sensor. It is recommended to find out how to use nRF52832 software on the Arduino forum.