Pages: [1]   Go Down
Author Topic: Pre Arduino Sketch conversion  (Read 391 times)
0 Members and 1 Guest are viewing this topic.
Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Logged

--> 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

Sydney, Australia
Online Online
Edison Member
*
Karma: 33
Posts: 1273
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My understanding of the 't' is it stands for 'type', as in datatype.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

--> 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

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 70
Posts: 2171
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: June 26, 2012, 08:49:39 pm by pYro_65 » Logged


Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

--> 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

Pages: [1]   Go Up
Jump to: