Skip to content

Commit

Permalink
Un-hardcode LED pin in AdvancedWebServer example
Browse files Browse the repository at this point in the history
Partial #908
  • Loading branch information
earlephilhower authored Oct 11, 2022
1 parent 86765ce commit 26b8d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const char *password = STAPSK;

WebServer server(80);

const int led = 13;
const int led = LED_BUILTIN;

void handleRoot() {
digitalWrite(led, 1);
Expand Down

0 comments on commit 26b8d86

Please sign in to comment.