Can I attach interrupt on gpio 10?

I have a nodemcu v1.0 (esp12e) Module and I want to attach external interrupt on pin S3(GPIO 10). The information I can find about doing it are a bit unclear. Others say it bricked the chip and others have done it with DIO(?) mode... Any clues? GPIO 6 to 11 and GPIO 1 and 3 are the only available pins I have left...

Check this:attachInterrupt() - Arduino Reference

The NodeMCU uses the ESP8266 processor, it has interrupts available on all pins except GPIO16.

You can't normally use GPIO6-11 (with some effort you can get to GPIO10 and 11, I haven't had much luck with that) as they are used for the internal flash communication, so indeed you have to make some changes to the default behaviour of the chip.

GPIO1 and 3 are used for Serial communication, which includes programming. You can use them as regular GPIO pins but you have to be very careful to not mess up the ability to program the thing.

@Railroader
The reference guide is how interrupts work and more specifically on arduino board's.

@wvmarle
Looks like I have to transfer to ESP32 cause I'm just one pin short...

panos_gkrigkas:
Looks like I have to transfer to ESP32 cause I'm just one pin short...

"One pin short" is rarely a reason to swap to a more complex processor.

Clearly you (because only you know what those other pins are doing) now need to review the other parts of the project.

And the other part of your "XY Problem" relates of course, to why you want an interrupt. :grinning:

panos_gkrigkas:
Looks like I have to transfer to ESP32 cause I'm just one pin short...

Or you learn how to use GPIO1 and 3 as additional I/O...