hxArduino icon indicating copy to clipboard operation
hxArduino copied to clipboard

Externs for Ethernet Shield / WIFI

Open datee opened this issue 6 years ago • 6 comments

It would be great to have externs for Ethernet Shield and Wifi! :) Have looked into setting it up myself, but not successful yet :)

datee avatar Feb 03 '20 13:02 datee

The problem there is i dont have either of those for my arduino, i could probably walk you through creating the externs though, if memory serves, they are pretty straight forward. Do you have links to the C libs?

ianharrigan avatar Feb 03 '20 14:02 ianharrigan

Well, i guess it would be these: https://www.arduino.cc/en/Reference/Ethernet https://www.arduino.cc/en/Reference/WiFi

I have an Arduino with a Shield attached im using for testing :)

datee avatar Feb 03 '20 15:02 datee

OK, the sources are in: "C:\Program Files (x86)\Arduino\libraries" and then lib name, what i can do, a little later, is write the externs blindly, by which i mean that the a test app will compile, and no run (since i dont have these components), then you can use this externs as a base and add / test them... sound good? :)

Cheers, Ian

ianharrigan avatar Feb 03 '20 15:02 ianharrigan

That would be absolutely fabulous! 👍 :)

datee avatar Feb 03 '20 15:02 datee

In order to use the libs they need to include SPI.h / SPI.cpp and w5100.h / w5100.cpp .. how can they be included automaticly in the build process?

datee avatar Feb 07 '20 09:02 datee

Hey... you can have multiple @:includes in externs, but its not going to help (that much), ive been working on some changes to the generator to make this work nicer, but i havent had alot of time recently to do much. Ive penciled in some time this weekend though, so hopefully ill make some progress then

Cheers, Ian

ianharrigan avatar Feb 13 '20 10:02 ianharrigan