Adelaide, South Australia
Offline
Full Member
Karma: 0
Posts: 135
Arduino rocks
|
 |
« Reply #15 on: November 14, 2011, 02:39:02 pm » |
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
Faraday Member
Karma: 16
Posts: 3220
20 LEDs are enough
|
 |
« Reply #16 on: November 14, 2011, 03:28:03 pm » |
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
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 80
Posts: 5513
Strongly opinionated, but not official!
|
 |
« Reply #17 on: November 14, 2011, 09:53:56 pm » |
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
Brattain Member
Karma: 269
Posts: 17040
Available for Design & Build services
|
 |
« Reply #18 on: November 14, 2011, 10:43:00 pm » |
http://www.arduino.cc/en/Guide/Environment Discusses CTRL-T This picture better shows the cursor & line number.
|
|
|
|
|
Logged
|
|
|
|
|
Adelaide, South Australia
Offline
Full Member
Karma: 0
Posts: 135
Arduino rocks
|
 |
« Reply #19 on: November 15, 2011, 04:19:34 am » |
many thanks CrossRoads - now I can see that sneaky little line number !  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
Sr. Member
Karma: 8
Posts: 450
|
 |
« Reply #20 on: November 15, 2011, 09:44:07 am » |
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
|
avenue33
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17040
Available for Design & Build services
|
 |
« Reply #21 on: November 15, 2011, 10:44:53 am » |
"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
|
|
|
|
|
Adelaide, South Australia
Offline
Full Member
Karma: 0
Posts: 135
Arduino rocks
|
 |
« Reply #22 on: November 15, 2011, 03:46:42 pm » |
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
Brattain Member
Karma: 269
Posts: 17040
Available for Design & Build services
|
 |
« Reply #23 on: November 15, 2011, 04:20:15 pm » |
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
|
|
|
|
|
Turku
Offline
Full Member
Karma: 0
Posts: 161
Arduino rocks
|
 |
« Reply #24 on: November 24, 2011, 03:17:29 pm » |
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
Full Member
Karma: 0
Posts: 161
Arduino rocks
|
 |
« Reply #25 on: November 24, 2011, 03:20:19 pm » |
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
Brattain Member
Karma: 269
Posts: 17040
Available for Design & Build services
|
 |
« Reply #26 on: November 24, 2011, 03:37:31 pm » |
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
|
|
|
|
|
Frozen Midwest
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #27 on: December 01, 2011, 11:19:22 pm » |
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.
|
|
|
|
|