void setup()
{
Serial.begin(9600);
Serial.println(__FILE__);
// other code
} // setup
The preprocessor will replace 'FILE' with your *.ino file name.
void setup()
{
Serial.begin(9600);
Serial.println(__FILE__);
// other code
} // setup
The preprocessor will replace 'FILE' with your *.ino file name.