This is an Arduino library that enables you attach an interrupt to any pin of Arduino Uno, Nano, Mini and other 328-based boards. The Arduino attachInterrupt() function only allows pines 2 & ~3.
Consider a fast-moving car, if it suddenly gets hit by another car in opposite direction, the first thing that happens is that, the accelerometer sensor present in the car senses a sudden ...
I have defined myFunction correctly. Then same code in arduino IDE compile without any problem.