Go Down

Topic: Documentation correction (Read 990 times) previous topic - next topic

uncle

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

CrossRoads

Yes. Unfortunately we moderators do not have privileges to correct those things.
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.

djscurge

#2
Jan 11, 2013, 06:30 am Last Edit: Jan 11, 2013, 06:33 am by djscurge Reason: 1
But.....this is where the suggestions link from the examples point. "Corrections, suggestions, and new documentation should be posted to the Forum."
:P
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)
"Shall I refuse my dinner because I do not fully understand the process of digestion?"  
-Oliver Heaviside

Go Up