Pages: 1 [2]   Go Down
Author Topic: Version 13 of the IDE  (Read 2236 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried to get a watchdog timer working with version 12 but with no success. I was told version 12 does not support the watchdog timer function. Would be nice to have in version 13.
Thanks
Rico Bravo
Logged

Beaverton, OR
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to write a library for the Arduino, but am having a lot of problems with IDE 0012.  I am guessing these problems have to do with the macros that were added for casting, but I am not sure.

The build system will not find the .h file for my library at all. When using the IDE to try to build my sketch that uses the new library, I get errors in WProgram.h and errors that my class is not defined anywhere. When I have all of my code in a sketch, including the library code, everything builds and works fine. My library dir is in the right place:  ./arduino-0012/hardware/libraries

Is there an alpha or beta of IDE 0013 available that I can try out?

8-Dale
Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6250
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can check if the macros are the problem by commenting them out of \hardware\cores\arduino\wiring.h

I do the following, but you can just enclose the lines with comments

Code:
//#define USE_PESKY_MACROS // uncomment this line to test with the pesky macros enabled
#ifdef USE_PESKY_MACROS
#define int(x)     ((int)(x))
#define char(x)    ((char)(x))
#define long(x)    ((long)(x))
#define byte(x)    ((uint8_t)(x))
#define float(x)   ((float)(x))
#endif
« Last Edit: December 20, 2008, 03:00:35 pm by mem » Logged

Beaverton, OR
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The macros do not appear to be at fault in this case. The build system is just not finding the .h file for my library.

8-Dale
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want to use a library with the Arduino Makefile, you need to add its .c or .cpp files to the source list and its path to the include path.  This seems to be standard practice for Makefile use, and is one of the advantages of the Arduino environment.
Logged

Beaverton, OR
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It won't work within the IDE (0012) either.  It gets errors on WProgram.h now.  However, if I pull all the library code into a sketch, everything builds  using the Makefile, and runs perfectly, but can not be built inside the IDE.

8-Dale
Logged

Bonn, Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 903
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One small suggestion.. would it be possible to add Hotkeys to the IDE - like F6 for build and F5 for Build and Upload?
Thats one of the things i terribly miss on the IDE..
Logged

Believe me, Mike, I calculated the odds of this succeeding against the odds I was doing something incredibly stupid[ch8230] and I went ahead

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ctrl-R is build and ctrl-u is upload (which also does a build). Do those work?
Logged

Bonn, Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 903
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

yes, it does.. havent noticed them before *blushes* - yet it would be quite nice to have F5 and F6 as well.. i dont know how many Visual Studio users are arround, but for those this could be quite handy ;0)
Logged

Believe me, Mike, I calculated the odds of this succeeding against the odds I was doing something incredibly stupid[ch8230] and I went ahead

0
Offline Offline
Newbie
*
Karma: 0
Posts: 30
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What about the serial monitor in the IDE 13 ?
What i miss are to use escape sequences for cursor home and clear screen. That would make it much more comfortable to observe data.
a variable font size is on my wishlist too.

regards
martin
Logged

London, England
Offline Offline
Edison Member
*
Karma: 4
Posts: 1026
Go! Go! Arduinoooo !!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How long till Version 13 is available?
Logged

Pages: 1 [2]   Go Up
Jump to: