Pages: [1]   Go Down
Author Topic: Documentation correction  (Read 972 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Reference/BooleanVariables

in the last row the semicolon is missing

void loop()
{
  if (digitalRead(switchPin) == LOW)
  {  // switch is pressed - pullup keeps pin high normally
    delay(100);                        // delay to debounce switch
    running = !running;                // toggle running variable
    digitalWrite(LEDpin, running)      // indicate via LED
  }
}
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes. Unfortunately we moderators do not have privileges to correct those things.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Tennessee
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Steak and Taters
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But.....this is where the suggestions link from the examples point. "Corrections, suggestions, and new documentation should be posted to the Forum."
 smiley-razz
Along those lines,
Clarification could be added to:
http://arduino.cc/en/Reference/AttachInterrupt
It mentions that the Due calls the interrupt pins differently, but doesn't specify which board the example code is written for.  Do you use "int.0" for the "interrupt" argument of the attachInterrupt function on the boards other than the Due?  Or would just "0" be acceptable for either?  (using the pin 0 on the Due, and pin 2 on the others)
« Last Edit: January 11, 2013, 12:33:14 am by djscurge » Logged

"Shall I refuse my dinner because I do not fully understand the process of digestion?"  
-Oliver Heaviside

Pages: [1]   Go Up
Jump to: