amperka / ino

Command line toolkit for working with Arduino hardware
http://inotool.org
MIT License
1.08k stars 233 forks source link

Uploading existing code #210

Open greenspray opened 9 years ago

greenspray commented 9 years ago

I just installed Ino yesterday. I usually use GUI but I want to work from remote location so I have to edit/upload sketches that I wrote from Arduino IDE. I cannot seem to figure out how to do that. I looked over the --help but there is nothing about it. Can anyone guide me?

greenspray commented 9 years ago

I also tried ino preproc [sketch name] Just as hit and trial. I get the error "No project found in this directory."

mathvav commented 9 years ago

I want this too. Did you figure this out?

I was hoping that there would be some flag to fix this

translucide commented 9 years ago

Should work through ssh...

mathvav commented 9 years ago

@translucide what do you mean by that?

translucide commented 9 years ago

@Annonomus-Penguin Well I mean that everything you do on a computer with ino can be done remotely via ssh, so if I understand correctly you want to upload a sketch you made with arduino IDE locally and compile&upload it to a device connected to another computer... that could be done through ssh.

I am not sure however I understand correctly what you want to do here...

greenspray commented 9 years ago

The only solution I found was to copy the ino file and rename it to sketch.ino. And you'll have to put the file in src/ directory. It would look like this : .. src/sketch.ino lib/ ..

This is not a good solution but it works and we are engineers :D

On Sat, Dec 13, 2014 at 9:50 AM, Translucide notifications@github.com wrote:

Well I mean that everything you do on a computer with ino can be done remotely via ssh, so if I understand correctly you want to upload a sketch you made with arduino IDE locally and compile&upload it to a device connected to another computer... that could be done through ssh.

I am not sure however I understand correctly what you want to do here...

— Reply to this email directly or view it on GitHub https://github.com/amperka/ino/issues/210#issuecomment-66864254.

mathvav commented 9 years ago

@greenspray that doesn't work for me. I had to do the file structure of this:

foldername
  - src
     * src.ino
     * [other files]
  - lib

The Arduino IDE requires the file to be in a folder with the same name as the sketch file for me.

mtfurlan commented 6 years ago

So it's impossible to use ino and the arduino IDE on the same project?