Skip to content

Commit

Permalink
Un-hardcode LED pin in AdvancedWebServer example (#909)
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 98c4b92
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 98c4b92

Please sign in to comment.