Skip to content

Commit 01570bd

Browse files
committed
Fixed spelling of "debounce" in chapter 2 code comments
1 parent 2889dd4 commit 01570bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Chapter 02/debounce/debounce.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ boolean debounce(boolean last)
3838

3939
void loop()
4040
{
41-
currentButton = debounce(lastButton); //read deboucned state
41+
currentButton = debounce(lastButton); //read debounced state
4242
if (lastButton == LOW && currentButton == HIGH) //if it was pressed…
4343
{
4444
ledOn = !ledOn; //toggle the LED value

Chapter 02/rgb_nightlight/rgb_nightlight.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void setMode(int mode)
107107

108108
void loop()
109109
{
110-
currentButton = debounce(lastButton); //read deboucned state
110+
currentButton = debounce(lastButton); //read debounced state
111111
if (lastButton == LOW && currentButton == HIGH) //if it was pressed...
112112
{
113113
ledMode++; //increment the LED value

0 commit comments

Comments
 (0)