Pages: [1]   Go Down
Author Topic: Multiple files  (Read 157 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to split up the main .ino file. Nothing I've tried has worked.

I've tried creating a foo.ino or foo.c file in the sketch folder. If I then drag it into the IDE, it asks me if I want to replace the existing foo.X file, which when I click 'Yes' then deletes that file from the sketch folder and I'm still left with just the one tab with my primary .ino file.

If I try creating the foo.ino in the sketch folder then selecting "file > open", it says that foo.ino needs to be in its own sketch folder. If I create foo.c in the sketch folder then select "file > open", it says "Processing can only open its own sketches and other files ending in .ino or .pde.

I've tried searching the net, but I'm getting a lot of 404 errors and unhelpful blog posts.

Assistance is appreciated!
Thanks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah I found the answer - I didn't see the little down arrow to the right of the tabs on the very right of the window, there's a "New Tab" option, I made a .C file
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 509
Posts: 31452
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I've tried creating a foo.ino or foo.c file in the sketch folder.
OK, now quit the IDE and start it again. When you open your program you will find a foo.c tab in the IDE window.
Logged

Pages: [1]   Go Up
Jump to: