User Tools

Site Tools


arduino:arduino_crash_course:basic_interaction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
arduino:arduino_crash_course:basic_interaction [2015/02/13 22:27] mithatarduino:arduino_crash_course:basic_interaction [2015/02/13 22:28] mithat
Line 72: Line 72:
   buttonState = digitalRead(pushButtonPin);  // read the input pin   buttonState = digitalRead(pushButtonPin);  // read the input pin
   digitalWrite(ledPin, buttonState);             // turn the LED on or off   digitalWrite(ledPin, buttonState);             // turn the LED on or off
-  //delay(1);        // delay in between reads for stability (?)+  //delay(1);        // delay between reads for stability (?? I don't remember why this got in here.)
 } }
 </file> </file>
Line 96: Line 96:
 void loop() { void loop() {
   digitalWrite(ledPin, digitalRead(pushButtonPin));  // read the input pin and turn the LED on or off   digitalWrite(ledPin, digitalRead(pushButtonPin));  // read the input pin and turn the LED on or off
-  //delay(1);        // delay in between reads for stability (?)+  //delay(1);        // delay between reads for stability (?? I don't remember why this got in here.)
 } }
 </file> </file>
arduino/arduino_crash_course/basic_interaction.txt · Last modified: 2017/12/06 01:05 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki