Skip to content

Commit

Permalink
Document clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert Arias committed Apr 11, 2020
1 parent 0407eca commit 4243559
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/VirtualButton/VirtualButton.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
unsigned long previous_millis = 0;
unsigned int interval = 1000;

#define BAUDRATE 115200

// Global variable that simulates the button's value.
bool button = true;

Expand All @@ -25,7 +27,7 @@ EasyButtonVirtual vButton(button);
// Callback function to be called when the button is pressed.
void buttonPressed()
{
Serial.println("Button pressed!");
Serial.println("Button pressed");
interval = 2500;
}

Expand All @@ -38,7 +40,7 @@ void buttonPressedForTwoSeconds()
void setup()
{
// Initialize Serial for debuging purposes.
Serial.begin(115200);
Serial.begin(BAUDRATE);

// Initialize the button.
vButton.begin();
Expand Down

0 comments on commit 4243559

Please sign in to comment.