Pages: 1 ... 24 25 [26] 27 28 ... 32   Go Down
Author Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches  (Read 110961 times)
0 Members and 2 Guests are viewing this topic.
Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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 -

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: November 25, 2013, 05:26:50 pm by nicoverduin » Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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 -

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Doe ik smiley En je moet ff door die zure appel heen smiley 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 smiley
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hoop niet dat je dat erg vind smiley
(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
Logged

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 -

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

We're on the same line smiley
Logged

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That is fast.
I'm impressed. I'm looking forward to the pull request.
Jantje
Logged

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 -

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Jantje
I sent the pull request.
Regards
Nico
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm impressed;
Jantje
Logged

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 -

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1926
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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 -

Heemskerk, Netherlands
Offline Offline
Sr. Member
****
Karma: 10
Posts: 406
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Jantje
Count me in smiley
Logged

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

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!

Logged

Pages: 1 ... 24 25 [26] 27 28 ... 32   Go Up
Jump to: