/Users/neil/devel/rp2040_clock/interrupt_test/interrupt_test.ino: In function 'void setup()':
interrupt_test:67:23: error: call to 'NinaPin::operator int' declared with attribute error: Change me to a #define
digitalWrite(LEDB, 1);
^
Here's a simplified sketch that shows the problem:
#include <WiFiNINA.h>
void setup() {
pinMode(LEDB, OUTPUT);
digitalWrite(LEDB, HIGH); // This compiles okay.
digitalWrite(LEDB, 1); // This throws a compile error.
}
void loop() {
// put your main code here, to run repeatedly:
}
I already posted it in #3 above. Here it is again:
/Users/neil/devel/rp2040_clock/interrupt_test/interrupt_test.ino: In function 'void setup()':
interrupt_test:67:23: error: call to 'NinaPin::operator int' declared with attribute error: Change me to a #define
digitalWrite(LEDB, 1);
^
the RGB LED is on the Nina module. the digitalWrite for RGB pins is overloaded to call WiFiNINA functions which communicate with the NINA module over SPI. this of course will not work in interrupt.
but it can't brick you board.
When I say bricked... what I meant was that it would no longer accept uploads from the computer. I could see that something was running, because the orange LED was blinking, though it wasn't blinking in the normal way. I was able to recover it by grounding the REC pin and pressing reset.