Go Down

Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches (Read 121728 times) previous topic - next topic

Jantje

sketch.cpp and sketch.h are delivered as part of the code. They are not coded. There is a global find and replace to change tags to the selected file name.
I however don't know how eclipse packages them for the plugin.
on github you can find them here. https://github.com/jantje/arduino-eclipse-plugin/tree/master/it.baeyens.arduino.core/src/it/baeyens/arduino/ui/templates
If you feel like a challenge; what I would do is extend the create new sketch wizard with a page to select the "default sketch"
That page could then later be extended to allow to select an example from a library.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

nicoverduin

#376
Nov 25, 2013, 10:42 pm Last Edit: Nov 25, 2013, 11:26 pm by nicoverduin Reason: 1
Hi Jan
I found both sources and following you procedure they can be modified. Apparently the Eclipse package incorporates them in the jar file. I scanned Eclipse for either files, but I could not find them. Only the previous versions had accessible source files.
I like you suggestion. So I will take that approach. I haven't a clue how yet, but I'd rather make 10 mistakes (I learn more) then some one telling me how to do it.
So my thinking will probably be:
a) after a couple of days...... How could any one use this onlogic language!!!
b) after a couple of weeks....... Oh that makes sense......
c) after a couple of weeks more..... Not a bad language at all  :smiley-mr-green: :smiley-mr-green: :smiley-mr-green: :smiley-mr-green:
And after about 25 programming languages through 40 years..... They all boil down to the same thing and you start using languages where they are convenient using the strengths :smiley-mr-green:
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

Jantje

dat klinkt bekend :-)
veel geluk
As er iets is laat het maar weten.
Lees ook de readme.md (onderaan deze pagina) https://github.com/jantje/arduino-eclipse-plugin voor de praktische afspraken en regelingen.
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

nicoverduin

Doe ik :) En je moet ff door die zure appel heen :) Overigens ik stop wel gelijk overal waar ik zit te kijken de zaak vol met commentaar (doe ik altijd bij Reverse engineering) dan ga ik het vanzelf begrijpen en het is gelijk gedocumenteerd. Hoop niet dat je dat erg vind :)
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

Jantje


Hoop niet dat je dat erg vind :)

(I see I swapped language again  :smiley-eek: )
Please be careful when adding comments when using a shared repository like github. Each file you touch becomes part of the changeset and/or pull request. As such the changeset can become so big it is nearly impossible to validate the "code change" because it is hidden in "comments changes".
So my rule of thumb:
If you touch a file-> feel free to add comments to the whole file
If you touch a set of files that belong together (for instance the create new sketch wizard is a set of files)-> feel free to add comments to the whole set; even if you do not modify code in the whole set.

Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

nicoverduin

Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

nicoverduin

Took some effort and lots of learning :smiley-mr-green: But I got it working. I still have some tidying up to do and then I will make a pull request.
Was fun learning though :smiley-mr-green:
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

Jantje

That is fast.
I'm impressed. I'm looking forward to the pull request.
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

nicoverduin

Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

Jantje

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

nicoverduin

Thank you :smiley-mr-green: Most of the effort is used on figuring out specific calls in the Eclipse help system.... and Wingrep is wonderful tool  :smiley-mr-green: And for the rest JUST-DO-IT!!!
And it certainly encourages for more :smiley-mr-green:
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

nicoverduin

As I am working with the ATTiny family I succeeded using the Baeyens plugin (using Arduino IDE 1.5.2) in the following way:

  • Download the latest version of ATTiny libs from: http://code.google.com/p/arduino-tiny/downloads/list

  • unpack them somewhere on your disk

  • create a folder tiny in :  {your installation folder}\hardware\arduino

  • copy the files from {where you unpacked the tiny folders}\arduino-tiny-0150-0018\tiny\avr to {your installation folder}\hardware\arduino]tiny

  • rename in Prospective Boards.txt in {your installation folder}\hardware\arduino]tiny to [boards.txt]
    • edit  platform.txt  in {your installation folder}\hardware\arduino\tiny and change this line:

      #compiler.path={ide.path}/tools/avr/bin/..

      into

      compiler.path={your Arduino installation folder}\hardware\tools\avr\bin\\

      {your Arduino installation folder} = the folder where you installed Arduino
      DON'T FORGET THE EXTRA BACKSLASH AFTER THE BIN



Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

Jantje

A new version of the plugin is coming and some testers are needed.
Volunteers please step forward.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

nicoverduin

Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl


A new version of the plugin is coming and some testers are needed.
Volunteers please step forward.
Best regards
Jantje


*steps foreward*

Ready for duty again sir!


Go Up