Example X_NUCLEO_IKS01A3_LSM6DSOX_MLC doesnt compile

Hello, the example X_NUCLEO_IKS01A3_LSM6DSOX_MLC.ino (V1.1.0 - latest) for Arduino Nano Connect RP2400 gives me 4 compile-time errors (Arduino IDE 2.2.2-nightly-20230903; see below). I got rid of errors 2,3,4 by adding,

#include "WiFiNINA.h"

but I can't get rid of error 1 even replacing

attachInterrupt(INT_1, INT1Event_cb, RISING);

with

attachInterrupt(digitalPinToInterrupt(INT_1), INT1Event_cb, (PinStatus) RISING);

In that example

#define INT_1 A5

Board correctly selected and libraries correctly installed. Any suggestions? Thanks!

1

error: call to 'NinaPin::operator int' declared with attribute error: Change me to a #define
   attachInterrupt(INT_1, INT1Event_cb, RISING);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

2

error: call to 'pinMode' declared with attribute error: Please include WiFiNINA.h to use this pin
   pinMode(INT_1, OUTPUT);
   ~~~~~~~^~~~~~~~~~~~~~~

3

error: call to 'digitalWrite' declared with attribute error: Please include WiFiNINA.h to use this pin
   digitalWrite(INT_1, LOW);
   ~~~~~~~~~~~~^~~~~~~~~~~~

4

error: call to 'pinMode' declared with attribute error: Please include WiFiNINA.h to use this pin
   pinMode(INT_1, INPUT);
   ~~~~~~~^~~~~~~~~~~~~~
2 Likes

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