Pages: 1 [2]   Go Down
Author Topic: Alternate IDEs? or how to get more from the standard IDE ?  (Read 3661 times)
0 Members and 1 Guest are viewing this topic.
Adelaide, South Australia
Offline Offline
Full Member
***
Karma: 0
Posts: 144
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you put your cursor in the code box, the line number it is on shows on the screen as well.

I tried this but I no line numbers anywhere but in error messages, could you explain this in a little more detail please?

Use CTRL-T to standardize the code presentation, will also alert you to mismatched ( )s. { }s, and [ ]s.

and where is this documented?  TIA
Logged

0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3499
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are not a makefile specialist my first suggestion is to switch to scons/sconstruct. Much easier to learn and maintain. As an additional bonus this is actually python --> there exists a debugger for it.
Logged

Check out my experiments http://blog.blinkenlight.net

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6805
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a debugger for makefiles.   Called "remake": http://bashdb.sourceforge.net/remake/
It can be pretty useful.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/en/Guide/Environment  Discusses CTRL-T

This picture better shows the cursor & line number.


* questions.jpg (85.66 KB, 960x720 - viewed 24 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Adelaide, South Australia
Offline Offline
Full Member
***
Karma: 0
Posts: 144
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/en/Guide/Environment  Discusses CTRL-T
This picture better shows the cursor & line number.

many thanks CrossRoads - now I can see that sneaky little line number !  smiley-small

another question if I may ... is there any way to set the monitor to start automatically after uploading?
« Last Edit: November 15, 2011, 04:29:31 am by ninja2 » Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 647
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

I agree with previous posts. The Arduino IDE is great, simple and effective.

Because I'm dealing with many I2C sensors, I have as many libraries as sensors.

I'd like to have some niceties as symbols list and parameters suggestion to speed up my coding because I can't remember all the symbols and parameters.

Now, there's room for many options:
  • using an application only for editing and the Arduino IDE for compiling
  • using a fully integrated IDE for editing, building and uploading.

I didn't manage to get the Arduino > Preferences > Use external editor work correctly.

Any help is welcomed!
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"is there any way to set the monitor to start automatically after uploading"

Not that I know of. I just click the Serial Monitor & start it manually.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Adelaide, South Australia
Offline Offline
Full Member
***
Karma: 0
Posts: 144
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just click the Serial Monitor & start it manually.

oh well so be it.

hmmm, your Bobuino Mega looks interesting. Would you be prepared to ship to Australia?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure, I think I shipped 3 of them internationally so far. I have 5 on hand right now, need to fix a solder bridge on the FT2323RL chip and they'd be ready to go.
(Note to self: Order a hot air nozzle, pull the part & resolder it!)

Anyway, its not a Mega, its a 1284. The 1280 & 2560 Mega are SMT only, DIP was requested to make it possible to pull the chip if damaged.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Turku
Offline Offline
Full Member
***
Karma: 1
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


another question if I may ... is there any way to set the monitor to start automatically after uploading?
If I understand you right, then there is a way. Click the "upload" button. Then IDE compiles the program and uploads it and starts serial monitor. But it does not save your program. However you should check this, because I have not uploaded any sketches lately.

Documentation? Someone told me about this on the old forum.
Logged

Turku
Offline Offline
Full Member
***
Karma: 1
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Use CTRL-T to standardize the code presentation, will also alert you to mismatched ( )s. { }s, and [ ]s.

If you're really stuck, there are some very good guys down under as well.


The IDE gets confused if there are ( )s. { }s, and [ ]s in the comments. Does CTRL-T work there too.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Maybe CTRL-T only catches some things, while the IDE and/or compiler get the rest.
For instance, if the cursor is next to a a (, ), {, }, [, or ], it highlights the mating bracket so you can easily see of you have pairs.
Or you mave to click next to a { and then use the scrollbar to find the mate as the code between them tends to be longer.

The IDE highlights them in comments also, which is not always a useful feature.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Frozen Midwest
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The standard IDE leaves a lot to be desired. But, from a development point of view, they have made an enormously complex problem into a simple download-and-write-code answer. They have done some amazing things in getting that featureless IDE to work for virtually 100% of the users.

On the other hand: if I can't get Eclipse to work for my hobby projects, I will toss Arduino and rip it up AVR style for anything more than a one page project. I am a software engineer as a daily job. Coming home and writing code is what I do for fun. Being able to use the Arduino for super quick-and-dirty proof of concept circuits, and using various components is awesome.

Although, after I have discovered how to use the Wire library for external banks of EEPROM, or how beautifully simple it is to control a servo, or what have you. I am ready to start dropping some mad codeto to make my robot sing and dance. That's when I desire a real IDE.


Am I capable of using TextMate and commandline to develop? Sure, heck - sometimes I do it all day. All the projects that we do at work are all Eclipse external Makefile jobs, so I am 100% confident in doing it in a minimalist way. But Eclipse has a nice spot in my heart. I use it for Python, PHP, C/C++, ASM, Java - I would use it for email if it would let me (God knows I hate Entourage!). After using Eclipse all day, coming home using the home-brewed-looking IDE is a drag.

Bottom line, I would not own multiple Arduinos, if they didn't have such a turn-key IDE. But after you get your LED blinking, or your motor spinning, most of us are ready for a complex IDE with project exploration, code linking, folding and all the other time saving features that are in the main line IDEs.

I am super pumped to get the Eclipse Plug-in that Jantje has working. (I have a few OS X glitches to work out) It looks like most people on Windows that have tried it, have it working nicely. So for anyone looking for an alternative, give it a go. It looks promising.

Now that I have read this thread I am going to give the Xcode plug-in a whirl too.


Thanks,
Nick
Logged

Frying boards one at a time. Sizzling components by the scores.

Pages: 1 [2]   Go Up
Jump to: