mtongnz / ESP8266_ArtNetNode_v2

ESP8266 based WiFi ArtNet to DMX, RDM and LED Pixels
GNU General Public License v3.0
611 stars 158 forks source link

Compile from source - including other .ino's (functions not defined) #58

Closed VideoRipper closed 7 years ago

VideoRipper commented 7 years ago

It's impossible to build the latest version of espArtnetNode_2.0.0_b5g.ino since the functions:

mtongnz commented 7 years ago

I split the main sketch into 4 files to make it easier to read - it was too long as one. They should all open when you open the main b5g.ino file as tabs in the arduino IDE.

If this doesn't happen, there's a little down arrow on the right side of the tabs pane. Click it and a drop down should appear with the option to add a New Tab - click that and then enter the file names (ajax.ino, firmUpdate.ino & startFunctions.ino). This should add the files as new tabs and then it should all compile correctly. After you save, it should keep the tabs the next time you open.

The other option is to copy everything into the main sketch.

Let me know how you get on.

VideoRipper commented 7 years ago

We've got it going by merging all project (.ino) files into one, but it's not ideal: the code should be split up in separate .cpp/*.h files.