Pages: [1]   Go Down
Author Topic: Error: Example code for Analog Sensor Calibration  (Read 505 times)
0 Members and 1 Guest are viewing this topic.
Eugene Oregon, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Toys!?! I have TOYS!!!!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is an error in the Sample code for the Analog Sensor Calibration under ANALOG I/O of the Examples page.
http://arduino.cc/en/Tutorial/Calibration

I orriginally posted the question to another topic on this forum because I was not sure that the fault was not on my end. However from the post I recieved from AWOL (thanks again there) I now understand that the error is not mine.

the error lies in two variables being decalred as "const" when infact they are designed to change (often rapidly) durring the setup() function.

to see the full posting on this see this post:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1245430112/0

Thought I would mention it here so it could get fixed before some other unsuspecting newbie tripped over it and thought they were missing some fine point in the programming language.
Logged

Now if I could just get Arduino to work with my WoW account....A whole guild of Toonduinos. "All your bases are belong to us!"

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 267
dinosaur cork
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Endante,

Fixed the learning page. The actual code for the calibration example may still be broken though.

paulb
Logged

Pages: [1]   Go Up
Jump to: