From bf5eb90f341787b845234687040294b772eecbf0 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 23 Jun 2017 20:34:03 +0300 Subject: [PATCH] examples/blinky: Blink GPIO2 by default, ESP-12 have builtin LED there. --- examples/blinky/blinky.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/blinky/blinky.c b/examples/blinky/blinky.c index 7b52cc1..dffb75c 100644 --- a/examples/blinky/blinky.c +++ b/examples/blinky/blinky.c @@ -3,7 +3,9 @@ #include "gpio.h" #include "os_type.h" -static const int pin = 1; +// ESP-12 modules have LED on GPIO2. Change to another GPIO +// for other boards. +static const int pin = 2; static volatile os_timer_t some_timer; void some_timerfunc(void *arg)