chipKIT® Development Platform

Inspired by Arduino™

Porting a library

Created Sun, 05 Oct 2014 16:17:05 +0000 by linuxha


linuxha

Sun, 05 Oct 2014 16:17:05 +0000

I'm porting over a library to my UNO32 (UIPEthernet) and I've run into the usual problems of Arduino registers and write size_t vs void (maddening). Those I've gotten by and I think I'm okay. But I'm really confused as to why I can't get passed calls such as millis and delay. I can't find what I'm missing to include those into the compile. This is one of the errors:

Enc28J60Network.cpp:88:11: error : 'delay' was not declared in this scope

Any pointers ?

Thanks


mikes

Sun, 05 Oct 2014 17:57:03 +0000

Try adding

#include <WProgram.h>

to the top of your file.


linuxha

Sun, 05 Oct 2014 18:32:09 +0000

Try adding

#include <WProgram.h>

to the top of your file.

Wow, that work really well ! Thanks ! :D


samdee21

Fri, 17 Mar 2017 14:40:48 +0000

Did you ever get UIPEtherent to work? I've just started playing with the Mpide, Thanks


linuxha

Fri, 17 Mar 2017 19:25:38 +0000

I switched from the ENC28J60 to the WizNet W5500 boards. I still have a lot of problems getting it loaded into the IDE (and I treid all 3 UCI, Chipkit and Arduino). I always ended up hacking it into place. Right now it's not working properly (again) and I need to fix that.