put those in an
FS.h
that is the library file which I wouldnt want to change.
Using library FS at version 3.1.1 in folder: C:\Users\johnl\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\FS
I thought I was. But quite confused. Especially when I expect the compiler to pick up functions from other tabs and it doesnnt.
But I put the function definitions there mainly for documentation so I dont have to refer out of the main tab to see what functions are doing.
there arent any .cpp files.
I'll try your idea of putting them in a src directory.
but I still dont see why the compiler shoulfd throw an "undefined reference" to InitIO()
2/esp32_weblights_V1_2.ino:109:(.text._Z5setupv+0x4d): undefined reference to `initIO()'
line 109 initIO(); //initialise hardware IO devices all leds off
when the function is present in hardio.ino AND the prototype in the main tab.
line 101 void initIO();