Go Down

Topic: Pre Arduino Sketch conversion (Read 441 times) previous topic - next topic

Docedison

Is there a general reference to converting 017 - 023 sketches, headers and .cpp files to 1.0 - 1.01 convention beyond the Arduino Definitions contained in Arduino.h. I understand some of the basics of conversion  { Byte becomes uint8_t} (what does the 't' stand for?) having a very small understanding of C and C++ I was wondering is there was a general guide for making older Arduino files work with the new compiler and associated files.

Doc


--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

marco_c

My understanding of the 't' is it stands for 'type', as in datatype.
Arduino libraries http://arduinocode.codeplex.com
Parola for Arduino http://parola.codeplex.com

Docedison

I do appreciate the answer to the small question however I don't know where to find help in converting old compiler version sketches to 1.0 - 1.01 version sketches.
Is this done on a line by line basis, question by question basis?

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

WizenedEE

You could read the release notes (stored in revisions.txt in the main arduino directory)

pYro_65

#4
Jun 27, 2012, 03:45 am Last Edit: Jun 27, 2012, 03:49 am by pYro_65 Reason: 1
Here is the reference from the avr-libc, it shows how all the standard types are defined:

http://www.nongnu.org/avr-libc/user-manual/group__avr__stdint.html

The names for these types is part of the ISO C++ standard.

EDIT: When I upgraded to 1.0.1 I had to do nothing. The sketches compiled slightly larger, but that's about it.
What errors are you getting?

Docedison

I think that the last two people have been the best advice ever, I thought I had all instances Arduino 1.0 stopped when I installed the Lib's and I had edited them for the obvious errors but when I try now to compile them I have errors from sketch to h files that indicate I have to fix the sketch to comply with the header file but now all will compile to the 'semantic' error in the sketch. Where I was getting errors before that I didn't recognize as Library issues until I gave it some real thought... and found the open IDE and closed it, then all was different in attempting compilation and the errors became "Understandable"
Thank All for the great references... I'm just hoping to get to the 90% level... only 90% of the day, the 10% doing things electronic that I want to do... 97% now

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Go Up