Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/Wallet Bridge 1/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ std::string handleTCPAPI(APIReturn *apiReturn)
}
}

// resetChallenge(): Aim is to generate a random challenge value, convert it to hexadecimal, and append it to the global challenge string.
void resetChallenge()
{
char buffer[32];
Expand All @@ -184,11 +185,12 @@ void resetChallenge()
challenge += itoa(challengeVal, buffer, 16);
}

// blink(): Aim is to toggle the state of a blue LED and print its state to the serial monitor.
void blink()
{
digitalWrite(BLUE_LED, blinkLEDOn);

Serial.print("Blink: ");
Serial.println(blinkLEDOn);
blinkLEDOn = !blinkLEDOn;
}
}