i have been trying to define the chip select pin for ethernet library for hours and didnt manage to find a way.
Is there any simple way ?
by modifing the definition in w5100.cpp IT WORKS , but i dont want to modify the CS pin for every project of course.
So i tried to include the whole ethernet library folder in my sketch folder
/testsketch/
---- testsketch.ino
------ /src/Ethernet/src/Ethernet.h
------ /src/Ethernet/src/Ethernet.cpp
------ /src/Ethernet/src/Ethernet... and so on
then include
#include "src/Ethernet/src/Ethernet.h"
but at compile the IDE tell me
Using library Ethernet at version 2.0.2 in folder: C:\Users\tfoutfou\Documents\Arduino\libraries\Ethernet
and dont use the one i included manually
How to force IDE to use my copy inside sketch folder ?
OK, maybe the IDE is more intelligent than I suspected.
I understand that a number of libraries have a 'src' subdirectory. But with normal use of the Ethernet library like #include <Ethernet.h> you do not specify that 'src' directory like #include <Ethernet/src/Ethernet.h>. I might be mistaken though.