Go Down

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



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


Yes. Unfortunately we moderators do not have privileges to correct those things.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


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."
Along those lines,
Clarification could be added to:
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)

Go Up